PortableExecutableReference.WithAliases 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.
Overloads
WithAliases(IEnumerable<String>) |
Returns an instance of the reference with specified aliases. |
WithAliases(ImmutableArray<String>) |
Returns an instance of the reference with specified aliases. |
WithAliases(IEnumerable<String>)
Returns an instance of the reference with specified aliases.
public:
Microsoft::CodeAnalysis::PortableExecutableReference ^ WithAliases(System::Collections::Generic::IEnumerable<System::String ^> ^ aliases);
public Microsoft.CodeAnalysis.PortableExecutableReference WithAliases (System.Collections.Generic.IEnumerable<string> aliases);
override this.WithAliases : seq<string> -> Microsoft.CodeAnalysis.PortableExecutableReference
Public Function WithAliases (aliases As IEnumerable(Of String)) As PortableExecutableReference
Parameters
- aliases
- IEnumerable<String>
The new aliases for the reference.
Returns
Exceptions
Alias is invalid for the metadata kind.
Applies to
WithAliases(ImmutableArray<String>)
Returns an instance of the reference with specified aliases.
public:
Microsoft::CodeAnalysis::PortableExecutableReference ^ WithAliases(System::Collections::Immutable::ImmutableArray<System::String ^> aliases);
public Microsoft.CodeAnalysis.PortableExecutableReference WithAliases (System.Collections.Immutable.ImmutableArray<string> aliases);
override this.WithAliases : System.Collections.Immutable.ImmutableArray<string> -> Microsoft.CodeAnalysis.PortableExecutableReference
Public Function WithAliases (aliases As ImmutableArray(Of String)) As PortableExecutableReference
Parameters
- aliases
- ImmutableArray<String>
The new aliases for the reference.
Returns
Exceptions
Alias is invalid for the metadata kind.