XamlAccessLevel.PrivateAccessTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a XamlAccessLevel instance based on a specific type.
Overloads
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. |
PrivateAccessTo(String)
- Source:
- XamlAccessLevel.cs
- Source:
- XamlAccessLevel.cs
- Source:
- XamlAccessLevel.cs
- Source:
- XamlAccessLevel.cs
Returns a XamlAccessLevel instance based on a specific type specified by its qualified name.
public:
static System::Xaml::Permissions::XamlAccessLevel ^ PrivateAccessTo(System::String ^ assemblyQualifiedTypeName);
public static System.Xaml.Permissions.XamlAccessLevel PrivateAccessTo (string assemblyQualifiedTypeName);
static member PrivateAccessTo : string -> System.Xaml.Permissions.XamlAccessLevel
Public Shared Function PrivateAccessTo (assemblyQualifiedTypeName As String) As XamlAccessLevel
Parameters
- assemblyQualifiedTypeName
- String
A string that is parsed as an assembly-qualified type name.
Returns
A XamlAccessLevel instance, with the assemblyQualifiedTypeName
value used as source information for PrivateAccessToTypeName and AssemblyAccessToAssemblyName determined by reflection on the type.
Exceptions
assemblyQualifiedTypeName
is null
.
assemblyQualifiedTypeName
is not a valid assembly-qualified type name.
-or-
Assembly name within assemblyQualifiedTypeName
is not a valid assembly name.
Applies to
PrivateAccessTo(Type)
- Source:
- XamlAccessLevel.cs
- Source:
- XamlAccessLevel.cs
- Source:
- XamlAccessLevel.cs
- Source:
- XamlAccessLevel.cs
Returns a XamlAccessLevel instance based on a specific type specified by Type.
public:
static System::Xaml::Permissions::XamlAccessLevel ^ PrivateAccessTo(Type ^ type);
public static System.Xaml.Permissions.XamlAccessLevel PrivateAccessTo (Type type);
static member PrivateAccessTo : Type -> System.Xaml.Permissions.XamlAccessLevel
Public Shared Function PrivateAccessTo (type As Type) As XamlAccessLevel
Parameters
Returns
A XamlAccessLevel instance, with the type
value used as source information for PrivateAccessToTypeName and AssemblyAccessToAssemblyName determined by reflection on the type.
Exceptions
type
is null
.