This documentation is archived and is not being maintained.

SecurityIdentifier Constructor (WellKnownSidType, SecurityIdentifier)

Note: This constructor is new in the .NET Framework version 2.0.

Initializes a new instance of the SecurityIdentifier class by using the specified well known security identifier (SID) type and domain SID.

Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)

public SecurityIdentifier (
	WellKnownSidType sidType,
	SecurityIdentifier domainSid
public SecurityIdentifier (
	WellKnownSidType sidType, 
	SecurityIdentifier domainSid
public function SecurityIdentifier (
	sidType : WellKnownSidType, 
	domainSid : SecurityIdentifier



A WellKnownSidType value.

This value must not be WinLogonIdsSid.


The domain SID. This value is required for the following WellKnownSidType values. This parameter is ignored for any other WellKnownSidType values.

  • WinAccountAdministratorSid

  • WinAccountGuestSid

  • WinAccountKrbtgtSid

  • WinAccountDomainAdminsSid

  • WinAccountDomainUsersSid

  • WinAccountDomainGuestsSid

  • WinAccountComputersSid

  • WinAccountControllersSid

  • WinAccountCertAdminsSid

  • WinAccountSchemaAdminsSid

  • WinAccountEnterpriseAdminsSid

  • WinAccountPolicyAdminsSid

  • WinAccountRasAndIasServersSid

Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0