Upraviť

Zdieľať cez


XamlAccessLevel Class

Definition

Defines access control to assemblies and types for purposes of XAML loading.

public ref class XamlAccessLevel
public class XamlAccessLevel
[System.Serializable]
public class XamlAccessLevel
type XamlAccessLevel = class
[<System.Serializable>]
type XamlAccessLevel = class
Public Class XamlAccessLevel
Inheritance
XamlAccessLevel
Attributes

Remarks

Static methods of XamlAccessLevel return instances of XamlAccessLevel, based on input. This is the only way to generate a XamlAccessLevel value (the constructor is private).

XamlAccessLevel is generally only used in conjunction with XamlLoadPermission.

Properties

AssemblyAccessToAssemblyName

Gets the AssemblyName of the assembly for which this XamlAccessLevel determines permissions.

PrivateAccessToTypeName

Gets the unqualified string name of the type for which this XamlAccessLevel determines permissions.

Methods

AssemblyAccessTo(Assembly)

Returns a XamlAccessLevel instance based on an assembly requested by Assembly.

AssemblyAccessTo(AssemblyName)

Returns a XamlAccessLevel instance based on an assembly requested by AssemblyName.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PrivateAccessTo(String)

Returns a XamlAccessLevel instance based on a specific type specified by its qualified name.

PrivateAccessTo(Type)

Returns a XamlAccessLevel instance based on a specific type specified by Type.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also