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