SecurityIdentifier クラス

定義

セキュリティ識別子 (SID) を表し、SID のマーシャリング操作と比較操作を提供します。

public ref class SecurityIdentifier sealed : System::Security::Principal::IdentityReference, IComparable<System::Security::Principal::SecurityIdentifier ^>
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class SecurityIdentifier : System.Security.Principal.IdentityReference, IComparable<System.Security.Principal.SecurityIdentifier>
[<System.Runtime.InteropServices.ComVisible(false)>]
type SecurityIdentifier = class
    inherit IdentityReference
    interface IComparable<SecurityIdentifier>
Public NotInheritable Class SecurityIdentifier
Inherits IdentityReference
Implements IComparable(Of SecurityIdentifier)
継承
SecurityIdentifier
属性
実装

コンストラクター

名前 説明
SecurityIdentifier(Byte[], Int32)

セキュリティ識別子 (SID) の指定したバイナリ表現を使用して、 SecurityIdentifier クラスの新しいインスタンスを初期化します。

SecurityIdentifier(IntPtr)

セキュリティ識別子 (SID) のバイナリ形式へのポインターを使用して、 SecurityIdentifier クラスの新しいインスタンスを初期化します。

SecurityIdentifier(String)

セキュリティ記述子定義言語 (SDDL) 形式の指定したセキュリティ識別子 (SID) を使用して、 SecurityIdentifier クラスの新しいインスタンスを初期化します。

SecurityIdentifier(WellKnownSidType, SecurityIdentifier)

指定した既知のセキュリティ識別子 (SID) の種類とドメイン SID を使用して、 SecurityIdentifier クラスの新しいインスタンスを初期化します。

フィールド

名前 説明
MaxBinaryLength

セキュリティ識別子のバイナリ表現の最大サイズ (バイト単位) を返します。

MinBinaryLength

セキュリティ識別子のバイナリ表現の最小サイズ (バイト単位) を返します。

プロパティ

名前 説明
AccountDomainSid

SID がWindows アカウント SID を表す場合は、SecurityIdentifier オブジェクトによって表される SID からアカウント ドメイン セキュリティ識別子 (SID) 部分を返します。 SID がWindows アカウント SID を表していない場合、このプロパティは null を返します。

BinaryLength

SecurityIdentifier オブジェクトによって表されるセキュリティ識別子 (SID) の長さをバイト単位で返します。

Value

この SecurityIdentifier オブジェクトによって表されるセキュリティ識別子 (SID) の大文字のセキュリティ記述子定義言語 (SDDL) 文字列を返します。

メソッド

名前 説明
CompareTo(SecurityIdentifier)

現在の SecurityIdentifier オブジェクトと、指定した SecurityIdentifier オブジェクトを比較します。

Equals(Object)

この SecurityIdentifier オブジェクトが指定したオブジェクトと等しいかどうかを示す値を返します。

Equals(SecurityIdentifier)

指定した SecurityIdentifier オブジェクトが現在の SecurityIdentifier オブジェクトと等しいかどうかを示します。

GetBinaryForm(Byte[], Int32)

SecurityIdentifier クラスによって表される指定されたセキュリティ識別子 (SID) のバイナリ表現をバイト配列にコピーします。

GetHashCode()

現在の SecurityIdentifier オブジェクトのハッシュ関数として機能します。 GetHashCode()メソッドは、ハッシュ アルゴリズムやハッシュ テーブルなどのデータ構造に適しています。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsAccountSid()

このSecurityIdentifier オブジェクトによって表されるセキュリティ識別子 (SID) が有効なWindows アカウント SID であるかどうかを示す値を返します。

IsEqualDomainSid(SecurityIdentifier)

この SecurityIdentifier オブジェクトによって表されるセキュリティ識別子 (SID) が、指定した SID と同じドメインからのものかどうかを示す値を返します。

IsValidTargetType(Type)

指定した型が SecurityIdentifier クラスの有効な変換型であるかどうかを示す値を返します。

IsWellKnown(WellKnownSidType)

SecurityIdentifier オブジェクトが、指定された既知のセキュリティ識別子 (SID) の種類と一致するかどうかを示す値を返します。

MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

SecurityIdentifier オブジェクトで表されるアカウントのセキュリティ識別子 (SID) をセキュリティ記述子定義言語 (SDDL) 形式で返します。 SDDL 形式の例として、S-1-5-9 があります。

Translate(Type)

SecurityIdentifier オブジェクトによって表されるアカウント名を別のIdentityReference派生型に変換します。

演算子

名前 説明
Equality(SecurityIdentifier, SecurityIdentifier)

2 つの SecurityIdentifier オブジェクトを比較して、等しいかどうかを判断します。 これらは、 Value プロパティによって返されたものと同じ正規表現を持っている場合、または両方とも nullされている場合は等しいと見なされます。

Inequality(SecurityIdentifier, SecurityIdentifier)

2 つの SecurityIdentifier オブジェクトを比較して、等しくないかどうかを判断します。 Value プロパティによって返される正規名表現と異なる正規名表現がある場合、またはオブジェクトの 1 つがnullされていて、もう一方がされていない場合、それらは等しくないと見なされます。

適用対象