ContextUtil.IsSecurityEnabled プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ContextUtil.IsSecurityEnabled プロパティの意味・解説 

ContextUtil.IsSecurityEnabled プロパティ

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

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Public Shared ReadOnly Property
 IsSecurityEnabled As Boolean
Dim value As Boolean

value = ContextUtil.IsSecurityEnabled
public static bool IsSecurityEnabled
 { get; }
public:
static property bool IsSecurityEnabled {
    bool get ();
}
/** @property */
public static boolean get_IsSecurityEnabled
 ()
public static function get
 IsSecurityEnabled () : boolean

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

例外例外
例外種類条件

COMException

使用できる COM+ コンテキストがありません。

使用例使用例

IsSecurityEnabled プロパティの値を取得するコード例次に示します

<SecurityRole("Role1")>  _
Public Class ContextUtil_IsSecurityEnabled
    Inherits ServicedComponent
    
    Public Sub Example() 
        ' Display whether role-based security is active for the current
 COM+
        ' context.
        MsgBox("Role-based security active in current context:
 " & ContextUtil.IsSecurityEnabled)

    End Sub 'Example
End Class 'ContextUtil_IsSecurityEnabled
[SecurityRole("Role1")]
public class ContextUtil_IsSecurityEnabled
 : ServicedComponent
{
    public void Example()
    {
        // Display whether role-based security is active for the current
 COM+
        // context.
        Console.WriteLine("Role-based security active in
 current context: {0}",
            ContextUtil.IsSecurityEnabled);
    }
}
[SecurityRole("Role1")]
public ref class ContextUtil_IsSecurityEnabled:
 public ServicedComponent
{
public:
   void Example()
   {
      // Display whether role-based security is active for the current
 COM+
      // context.
      Console::WriteLine( "Role-based security active in
 current context: {0}", 
         ContextUtil::IsSecurityEnabled );
   }
};
/** @attribute SecurityRole("Role1")
 */
public class ContextUtil_IsSecurityEnabled
 extends ServicedComponent
{
    public void Example()
    {
        // Display whether role-based security is active for the current
 COM+
        // context.
        Console.WriteLine("Role-based security active in
 current context: {0}",
            System.Convert.ToString(ContextUtil.get_IsSecurityEnabled()));
    } //Example
} //ContextUtil_IsSecurityEnabled
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からContextUtil.IsSecurityEnabled プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からContextUtil.IsSecurityEnabled プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からContextUtil.IsSecurityEnabled プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ContextUtil.IsSecurityEnabled プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ContextUtil.IsSecurityEnabled プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS