共用方式為


PropertyBlockSyntax.WithPropertyStatement(PropertyStatementSyntax) 方法

定義

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::PropertyBlockSyntax ^ WithPropertyStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::PropertyStatementSyntax ^ propertyStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.PropertyBlockSyntax WithPropertyStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.PropertyStatementSyntax propertyStatement);
member this.WithPropertyStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.PropertyStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.PropertyBlockSyntax
Public Function WithPropertyStatement (propertyStatement As PropertyStatementSyntax) As PropertyBlockSyntax

參數

propertyStatement
PropertyStatementSyntax

傳回

適用於