Bagikan melalui


CSharpCompilation.ReplaceReference Metode

Definisi

Membuat kompilasi baru dengan referensi metadata lama diganti dengan referensi metadata baru.

public:
 Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ ReplaceReference(Microsoft::CodeAnalysis::MetadataReference ^ oldReference, Microsoft::CodeAnalysis::MetadataReference ^ newReference);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation ReplaceReference (Microsoft.CodeAnalysis.MetadataReference oldReference, Microsoft.CodeAnalysis.MetadataReference newReference);
override this.ReplaceReference : Microsoft.CodeAnalysis.MetadataReference * Microsoft.CodeAnalysis.MetadataReference -> Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Public Function ReplaceReference (oldReference As MetadataReference, newReference As MetadataReference) As CSharpCompilation

Parameter

oldReference
MetadataReference
newReference
MetadataReference

Mengembalikan

Berlaku untuk