Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NTAccount.IsValidTargetType Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft