Delen via


MetadataReference.WithAliases Method

Definition

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
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
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.

Applies to