NTAccount.IsValidTargetType Method (Type)

 

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

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

public override bool IsValidTargetType(
	Type targetType
)

Parameters

targetType
Type: System.Type

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

- NTAccount

- SecurityIdentifier

Return Value

Type: System.Boolean

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

.NET Framework
Available since 2.0
Return to top
Show: