Upraviť

Zdieľať cez


XamlTypeMapper.AllowInternalType(Type) Method

Definition

Requests permission for a XamlTypeMapper derived type that is called under full trust to access a specific internal type.

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

Parameters

type
Type

The type to access.

Returns

true if the internal type can be accessed; otherwise, false.

Remarks

If not overridden by a subclass, AllowInternalType always returns false.

When overridden by a subclass, the behavior should be that AllowInternalType should return true if the internal type can be accessed; otherwise, false.

Applies to