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