共用方式為


Solution.WithDocumentName(DocumentId, String) 方法

定義

使用指定的檔建立新的方案實例,以擁有新的名稱。

public:
 Microsoft::CodeAnalysis::Solution ^ WithDocumentName(Microsoft::CodeAnalysis::DocumentId ^ documentId, System::String ^ name);
public Microsoft.CodeAnalysis.Solution WithDocumentName (Microsoft.CodeAnalysis.DocumentId documentId, string name);
member this.WithDocumentName : Microsoft.CodeAnalysis.DocumentId * string -> Microsoft.CodeAnalysis.Solution
Public Function WithDocumentName (documentId As DocumentId, name As String) As Solution

參數

documentId
DocumentId
name
String

傳回

適用於