IdentityReference.IsValidTargetType(Type) 方法

定义

返回一个值,该值指示指定类型是否为 IdentityReference 类的有效转换类型。

public:
 abstract bool IsValidTargetType(Type ^ targetType);
public abstract bool IsValidTargetType (Type targetType);
abstract member IsValidTargetType : Type -> bool
Public MustOverride Function IsValidTargetType (targetType As Type) As Boolean

参数

targetType
Type

查询其能否作为 IdentityReference 的有效转换类型的类型。 以下目标类型是有效的:

NTAccountSecurityIdentifier.

返回

如果 targetTypeIdentityReference 类的有效转换类型,则为 true;否则为 false

适用于