IdentityReference.IsValidTargetType Method (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether the specified type is a valid translation type for the IdentityReference class.

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

public abstract bool IsValidTargetType(
	Type targetType
)

Parameters

targetType
Type: System.Type

The type being queried for validity to serve as a conversion from IdentityReference. The following target types are valid:

NTAccount

SecurityIdentifier

Return Value

Type: System.Boolean

true if targetType is a valid translation type for the IdentityReference class; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: