Share via


SyntaxFactory.NamespaceStatement Method

Definition

Overloads

NamespaceStatement(NameSyntax)

Represents the beginning statement of a namespace declaration. This node always appears as the Begin of a BlockStatement with Kind=NamespaceBlock.

NamespaceStatement(SyntaxToken, NameSyntax)

Represents the beginning statement of a namespace declaration. This node always appears as the Begin of a BlockStatement with Kind=NamespaceBlock.

NamespaceStatement(NameSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents the beginning statement of a namespace declaration. This node always appears as the Begin of a BlockStatement with Kind=NamespaceBlock.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::NamespaceStatementSyntax ^ NamespaceStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::NameSyntax ^ name);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceStatementSyntax NamespaceStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.NameSyntax name);
static member NamespaceStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.NameSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceStatementSyntax
Public Shared Function NamespaceStatement (name As NameSyntax) As NamespaceStatementSyntax

Parameters

name
NameSyntax

A (possibly dotted) name denoting the namespace being declared.

Returns

Applies to

NamespaceStatement(SyntaxToken, NameSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents the beginning statement of a namespace declaration. This node always appears as the Begin of a BlockStatement with Kind=NamespaceBlock.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::NamespaceStatementSyntax ^ NamespaceStatement(Microsoft::CodeAnalysis::SyntaxToken namespaceKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::NameSyntax ^ name);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceStatementSyntax NamespaceStatement (Microsoft.CodeAnalysis.SyntaxToken namespaceKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.NameSyntax name);
static member NamespaceStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.NameSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceStatementSyntax
Public Shared Function NamespaceStatement (namespaceKeyword As SyntaxToken, name As NameSyntax) As NamespaceStatementSyntax

Parameters

namespaceKeyword
SyntaxToken

The "Namespace" keyword.

name
NameSyntax

A (possibly dotted) name denoting the namespace being declared.

Returns

Applies to