SyntaxFactory.DeclarationExpression 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 DeclarationExpressionSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::DeclarationExpressionSyntax ^ DeclarationExpression(Microsoft::CodeAnalysis::CSharp::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDesignationSyntax ^ designation);
public static Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationExpressionSyntax DeclarationExpression (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax designation);
static member DeclarationExpression : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationExpressionSyntax
Public Shared Function DeclarationExpression (type As TypeSyntax, designation As VariableDesignationSyntax) As DeclarationExpressionSyntax
參數
- type
- TypeSyntax
- designation
- VariableDesignationSyntax