SecurityIdentifier Класс
Определение
Представляет идентификатор безопасности (SID) и предоставляет операции маршалинга и сравнения для SID.Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.
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>
type SecurityIdentifier = class
inherit IdentityReference
interface IComparable<SecurityIdentifier>
Public NotInheritable Class SecurityIdentifier
Inherits IdentityReference
Implements IComparable(Of SecurityIdentifier)
- Наследование
- Атрибуты
- Реализации
Конструкторы
SecurityIdentifier(Byte[], Int32) |
Инициализирует новый экземпляр класса SecurityIdentifier, используя указанное двоичное представление идентификатора безопасности (ИД безопасности).Initializes a new instance of the SecurityIdentifier class by using a specified binary representation of a security identifier (SID). |
SecurityIdentifier(IntPtr) |
Инициализирует новый экземпляр класса SecurityIdentifier, используя целое число, представляющее двоичную форму идентификатора безопасности (ИД безопасности).Initializes a new instance of the SecurityIdentifier class by using an integer that represents the binary form of a security identifier (SID). |
SecurityIdentifier(String) |
Инициализирует новый экземпляр класса SecurityIdentifier, используя указанный идентификатор безопасности (ИД безопасности) в формате SDDL (Security Descriptor Definition Language).Initializes a new instance of the SecurityIdentifier class by using the specified security identifier (SID) in Security Descriptor Definition Language (SDDL) format. |
SecurityIdentifier(WellKnownSidType, SecurityIdentifier) |
Инициализирует новый экземпляр класса SecurityIdentifier, используя указанные хорошо известный тип идентификатора безопасности (ИД безопасности) и ИД безопасности домена.Initializes a new instance of the SecurityIdentifier class by using the specified well known security identifier (SID) type and domain SID. |
Поля
MaxBinaryLength |
Возвращает максимальный размер (в байтах) двоичного представления идентификатора безопасности.Returns the maximum size, in bytes, of the binary representation of the security identifier. |
MinBinaryLength |
Возвращает минимальный размер (в байтах) двоичного представления идентификатора безопасности.Returns the minimum size, in bytes, of the binary representation of the security identifier. |
Свойства
AccountDomainSid |
Возвращает часть идентификатора безопасности (ИД безопасности) домена учетных записей из ИД безопасности, представленного объектом SecurityIdentifier, если этот ИД безопасности представляет ИД безопасности учетной записи Windows.Returns the account domain security identifier (SID) portion from the SID represented by the SecurityIdentifier object if the SID represents a Windows account SID. Если данный ИД безопасности не представляет ИД безопасности учетной записи Windows, это свойство возвращает |
BinaryLength |
Возвращает длину (в байтах) идентификатора безопасности (ИД безопасности), представленного объектом SecurityIdentifier.Returns the length, in bytes, of the security identifier (SID) represented by the SecurityIdentifier object. |
Value |
Возвращает строку символов в верхнем регистре в формате SDDL (Security Descriptor Definition Language) для идентификатора безопасности (ИД безопасности), представленного данным объектом SecurityIdentifier.Returns an uppercase Security Descriptor Definition Language (SDDL) string for the security identifier (SID) represented by this SecurityIdentifier object. |
Методы
CompareTo(SecurityIdentifier) |
Сравнивает текущий объект SecurityIdentifier с заданным объектом SecurityIdentifier.Compares the current SecurityIdentifier object with the specified SecurityIdentifier object. |
Equals(Object) |
Возвращает значение, показывающее, равен ли данный объект SecurityIdentifier указанному объекту.Returns a value that indicates whether this SecurityIdentifier object is equal to a specified object. |
Equals(SecurityIdentifier) |
Показывает, равен ли заданный объект SecurityIdentifier текущему объекту SecurityIdentifier.Indicates whether the specified SecurityIdentifier object is equal to the current SecurityIdentifier object. |
GetBinaryForm(Byte[], Int32) |
Копирует двоичное представление указанного идентификатора безопасности (ИД безопасности), представленного классом SecurityIdentifier, в массив байтов.Copies the binary representation of the specified security identifier (SID) represented by the SecurityIdentifier class to a byte array. |
GetHashCode() |
Служит в качестве хэш-функции для текущего объекта SecurityIdentifier.Serves as a hash function for the current SecurityIdentifier object. Метод GetHashCode() подходит для алгоритмов хэширования и структур данных, таких как хэш-таблицы.The GetHashCode() method is suitable for hashing algorithms and data structures like a hash table. |
GetType() |
Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance. (Унаследовано от Object) |
IsAccountSid() |
Возвращает значение, показывающее, является ли идентификатор безопасности (ИД безопасности), представленный данным объектом SecurityIdentifier, допустимым ИД безопасности учетной записи Windows.Returns a value that indicates whether the security identifier (SID) represented by this SecurityIdentifier object is a valid Windows account SID. |
IsEqualDomainSid(SecurityIdentifier) |
Возвращает значение, показывающее, относится ли идентификатор безопасности (ИД безопасности), представленный данным объектом SecurityIdentifier, к тому же домену, что и заданный ИД безопасности.Returns a value that indicates whether the security identifier (SID) represented by this SecurityIdentifier object is from the same domain as the specified SID. |
IsValidTargetType(Type) |
Возвращает значение, показывающее, является ли указанный тип допустимым типом преобразования для класса SecurityIdentifier.Returns a value that indicates whether the specified type is a valid translation type for the SecurityIdentifier class. |
IsWellKnown(WellKnownSidType) |
Возвращает значение, показывающее, соответствует ли объект SecurityIdentifier заданному хорошо известному типу идентификатора безопасности (ИД безопасности).Returns a value that indicates whether the SecurityIdentifier object matches the specified well known security identifier (SID) type. |
MemberwiseClone() |
Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object. (Унаследовано от Object) |
ToString() |
Возвращает идентификатор безопасности (ИД безопасности) в формате SDDL (Security Descriptor Definition Language) для учетной записи, представленной объектом SecurityIdentifier.Returns the security identifier (SID), in Security Descriptor Definition Language (SDDL) format, for the account represented by the SecurityIdentifier object. Пример формата SDDL — S-1-5-9.An example of the SDDL format is S-1-5-9. |
Translate(Type) |
Преобразует имя учетной записи, представленное объектом SecurityIdentifier, в другой тип, производный от IdentityReference.Translates the account name represented by the SecurityIdentifier object into another IdentityReference-derived type. |
Операторы
Equality(SecurityIdentifier, SecurityIdentifier) |
Сравнивает два объекта SecurityIdentifier на равенство.Compares two SecurityIdentifier objects to determine whether they are equal. Объекты считаются равными, если их каноническое представление совпадает с представлением, возвращаемым свойством Value, или оба объекта имеют значение |
Inequality(SecurityIdentifier, SecurityIdentifier) |
Сравнивает два объекта SecurityIdentifier на неравенство.Compares two SecurityIdentifier objects to determine whether they are not equal. Объекты считаются неравными, если их канонические представления имени отличаются от представления, возвращаемого свойством Value, или один из объектов имеет значение |