AssemblyReferences Constructor (AssemblyName, IEnumerable<AssemblyName>)
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the AssemblyReferences class with the specified local assembly name and set of references.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Sub New ( _
localAssemblyName As AssemblyName, _
newReferences As IEnumerable(Of AssemblyName) _
)
public AssemblyReferences(
AssemblyName localAssemblyName,
IEnumerable<AssemblyName> newReferences
)
public:
AssemblyReferences(
AssemblyName^ localAssemblyName,
IEnumerable<AssemblyName^>^ newReferences
)
new :
localAssemblyName:AssemblyName *
newReferences:IEnumerable<AssemblyName> -> AssemblyReferences
public function AssemblyReferences(
localAssemblyName : AssemblyName,
newReferences : IEnumerable<AssemblyName>
)
Parameters
- localAssemblyName
Type: System.Reflection.AssemblyName
The local assembly name. This can only be set one time.
- newReferences
Type: System.Collections.Generic.IEnumerable<AssemblyName>
The new set of references. This may not be nulla null reference (Nothing in Visual Basic) and it may not contain nulla null reference (Nothing in Visual Basic) values.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | newReferences is nulla null reference (Nothing in Visual Basic), or if one of the values in the array is nulla null reference (Nothing in Visual Basic). |
Remarks
When this object is added to an editing context, it will merge itself with any existing references in the context.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design Namespace