共用方式為


XmlDocumentSyntax.WithDeclaration(XmlDeclarationSyntax) 方法

定義

傳回這個 的複本,其中宣告屬性已變更為指定的值。 如果指定的值與目前的值相同,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::XmlDocumentSyntax ^ WithDeclaration(Microsoft::CodeAnalysis::VisualBasic::Syntax::XmlDeclarationSyntax ^ declaration);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlDocumentSyntax WithDeclaration (Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlDeclarationSyntax declaration);
member this.WithDeclaration : Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlDeclarationSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlDocumentSyntax
Public Function WithDeclaration (declaration As XmlDeclarationSyntax) As XmlDocumentSyntax

參數

declaration
XmlDeclarationSyntax

傳回

適用於