SyntaxGenerator.StructDeclaration メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
struct 宣言を作成します。
public abstract Microsoft.CodeAnalysis.SyntaxNode StructDeclaration (string name, System.Collections.Generic.IEnumerable<string> typeParameters = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> interfaceTypes = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> members = default);
public Microsoft.CodeAnalysis.SyntaxNode StructDeclaration (string name, System.Collections.Generic.IEnumerable<string>? typeParameters = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? interfaceTypes = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? members = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode StructDeclaration (string name, System.Collections.Generic.IEnumerable<string>? typeParameters = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? interfaceTypes = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? members = default);
abstract member StructDeclaration : string * seq<string> * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers * seq<Microsoft.CodeAnalysis.SyntaxNode> * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
member this.StructDeclaration : string * seq<string> * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers * seq<Microsoft.CodeAnalysis.SyntaxNode> * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function StructDeclaration (name As String, Optional typeParameters As IEnumerable(Of String) = Nothing, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing, Optional interfaceTypes As IEnumerable(Of SyntaxNode) = Nothing, Optional members As IEnumerable(Of SyntaxNode) = Nothing) As SyntaxNode
Public Function StructDeclaration (name As String, Optional typeParameters As IEnumerable(Of String) = Nothing, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing, Optional interfaceTypes As IEnumerable(Of SyntaxNode) = Nothing, Optional members As IEnumerable(Of SyntaxNode) = Nothing) As SyntaxNode
パラメーター
- name
- String
- typeParameters
- IEnumerable<String>
- accessibility
- Accessibility
- modifiers
- DeclarationModifiers
- interfaceTypes
- IEnumerable<SyntaxNode>
- members
- IEnumerable<SyntaxNode>
戻り値
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET