다음을 통해 공유


CSharpCompilation.WithReferences 메서드

정의

오버로드

WithReferences(IEnumerable<MetadataReference>)

지정된 참조를 사용하여 새 컴파일을 만듭니다.

WithReferences(MetadataReference[])

지정된 참조를 사용하여 새 컴파일을 만듭니다.

WithReferences(IEnumerable<MetadataReference>)

Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs

지정된 참조를 사용하여 새 컴파일을 만듭니다.

public:
 Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ WithReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ references);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> references);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference>? references);
override this.WithReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Public Function WithReferences (references As IEnumerable(Of MetadataReference)) As CSharpCompilation

매개 변수

반환

설명

CSharpCompilation 항목은 필요한 즉시 기본 메타데이터에 대해 지정된 MetadataReference 데이터를 쿼리합니다.

새 컴파일은 현재 .에서 제공하는 메타데이터를 MetadataReference사용합니다. 예를 들어 현재 컴파일이 컴파일을 만든 후 변경된 메타데이터 파일을 참조하는 경우 새 컴파일은 업데이트된 버전을 사용하지만 현재 컴파일은 이전 버전을 사용합니다(변경되지 않음).

적용 대상

WithReferences(MetadataReference[])

Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs

지정된 참조를 사용하여 새 컴파일을 만듭니다.

public:
 Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ WithReferences(... cli::array <Microsoft::CodeAnalysis::MetadataReference ^> ^ references);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation WithReferences (params Microsoft.CodeAnalysis.MetadataReference[] references);
override this.WithReferences : Microsoft.CodeAnalysis.MetadataReference[] -> Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Public Function WithReferences (ParamArray references As MetadataReference()) As CSharpCompilation

매개 변수

references
MetadataReference[]

반환

적용 대상