AssemblyName Constructor (String)
Collapse the table of content
Expand the table of content

AssemblyName Constructor (String)

 

Initializes a new instance of the AssemblyName class with the specified display name.

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

new : 
        assemblyName:string -> AssemblyName

Parameters

assemblyName
Type: System.String

The display name of the assembly, as returned by the FullName property.

Exception Condition
ArgumentNullException

assemblyName is null.

ArgumentException

assemblyName is a zero length string.

FileLoadException
System_CAPS_noteNote

In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, IOException, instead.

The referenced assembly could not be found, or could not be loaded.

The supplied assemblyName is parsed, and the appropriate fields of the new AssemblyName are initialized with values from the display name. This is the recommended way of parsing display names. Writing your own code to parse display names is not recommended.

The following example creates an instance of AssemblyName from a display name. The individual elements of the display name are output to the console as properties of the AssemblyNameobject.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft