Share via


XamlTypeMapper.AllowInternalType(Type) 方法

定義

要求 XamlTypeMapper 衍生型別的使用權限,以便在完全信任的情況下呼叫此型別來存取特定內部型別。

protected:
 virtual bool AllowInternalType(Type ^ type);
protected virtual bool AllowInternalType (Type type);
abstract member AllowInternalType : Type -> bool
override this.AllowInternalType : Type -> bool
Protected Overridable Function AllowInternalType (type As Type) As Boolean

參數

type
Type

要存取的型別。

傳回

如果可以存取內部型別則為 true,否則為 false

備註

如果未由子類別覆寫, AllowInternalType 一律會傳 false回 。

當由子類別覆寫時,如果可以存取內部類型, AllowInternalType 則行為應該會傳回 true ,否則 false為 。

適用於