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

返回

适用于