次の方法で共有


ContextUtil.IsSecurityEnabled プロパティ

現在のコンテキストでロール ベースのセキュリティがアクティブかどうかを示す値を取得します。

Public Shared ReadOnly Property IsSecurityEnabled As Boolean
[C#]
public static bool IsSecurityEnabled {get;}
[C++]
public: __property static bool get_IsSecurityEnabled();
[JScript]
public static function get IsSecurityEnabled() : Boolean;

プロパティ値

現在のコンテキストのセキュリティが有効である場合は true 。それ以外の場合は false

例外

例外の種類 条件
COMException 使用できる COM+ コンテキストがありません。

必要条件

プラットフォーム: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ContextUtil クラス | ContextUtil メンバ | System.EnterpriseServices 名前空間