.NET Framework Class Library for Silverlight
Assembly..::.GetName Method

This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.
[SECURITY CRITICAL]

Gets an AssemblyName for this assembly.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)
Syntax

Visual Basic (Declaration)
<SecurityCriticalAttribute> _
Public Overridable Function GetName As AssemblyName
Visual Basic (Usage)
Dim instance As [Assembly]
Dim returnValue As AssemblyName

returnValue = instance.GetName()
C#
[SecurityCriticalAttribute]
public virtual AssemblyName GetName()

Return Value

Type: System.Reflection..::.AssemblyName
An AssemblyName for this assembly.
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Community Content

Samuel Jack
Workaround
This code will get the assembly name for you in Silverlight:

var assemblyName = new AssemblyName(assembly.FullName);
Tags :

Page view tracker