次の方法で共有


Roles.Domain プロパティ

定義

ロール名 Cookie のドメインの値を取得します。

public:
 static property System::String ^ Domain { System::String ^ get(); };
public static string Domain { get; }
static member Domain : string
Public Shared ReadOnly Property Domain As String

プロパティ値

ロール名 Cookie の Domain

注釈

Domain プロパティの値は、roleManager 構成要素のdomain属性を使用して、ASP.NET アプリケーションの構成で設定されます。

ドメイン属性の構成で値が指定されていない場合、 Domain プロパティは null を返し、ロール名 Cookie ドメインは既定で HttpCookieDomain プロパティの動作になります。

適用対象

こちらもご覧ください