Поделиться через


SyntaxFactory.UsingDirective Метод

Определение

Перегрузки

UsingDirective(SyntaxToken, SyntaxToken, SyntaxToken, NameEqualsSyntax, NameSyntax, SyntaxToken)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(NameSyntax)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(TypeSyntax)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(NameEqualsSyntax, NameSyntax)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(NameEqualsSyntax, TypeSyntax)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(SyntaxToken, NameEqualsSyntax, NameSyntax)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(SyntaxToken, SyntaxToken, NameEqualsSyntax, NameSyntax, SyntaxToken)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, NameEqualsSyntax, TypeSyntax, SyntaxToken)

Создает новый экземпляр UsingDirectiveSyntax.

UsingDirective(SyntaxToken, SyntaxToken, SyntaxToken, NameEqualsSyntax, NameSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs

Создает новый экземпляр UsingDirectiveSyntax.

public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.SyntaxToken globalKeyword, Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxToken staticKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax? alias, Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member UsingDirective : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (globalKeyword As SyntaxToken, usingKeyword As SyntaxToken, staticKeyword As SyntaxToken, alias As NameEqualsSyntax, name As NameSyntax, semicolonToken As SyntaxToken) As UsingDirectiveSyntax

Параметры

globalKeyword
SyntaxToken
usingKeyword
SyntaxToken
staticKeyword
SyntaxToken
name
NameSyntax
semicolonToken
SyntaxToken

Возвращаемое значение

Применяется к

UsingDirective(NameSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs

Создает новый экземпляр UsingDirectiveSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::UsingDirectiveSyntax ^ UsingDirective(Microsoft::CodeAnalysis::CSharp::Syntax::NameSyntax ^ name);
public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name);
static member UsingDirective : Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (name As NameSyntax) As UsingDirectiveSyntax

Параметры

name
NameSyntax

Возвращаемое значение

Применяется к

UsingDirective(TypeSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Создает новый экземпляр UsingDirectiveSyntax.

public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax namespaceOrType);
static member UsingDirective : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (namespaceOrType As TypeSyntax) As UsingDirectiveSyntax

Параметры

namespaceOrType
TypeSyntax

Возвращаемое значение

Применяется к

UsingDirective(NameEqualsSyntax, NameSyntax)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Создает новый экземпляр UsingDirectiveSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::UsingDirectiveSyntax ^ UsingDirective(Microsoft::CodeAnalysis::CSharp::Syntax::NameEqualsSyntax ^ alias, Microsoft::CodeAnalysis::CSharp::Syntax::NameSyntax ^ name);
public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax alias, Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name);
static member UsingDirective : Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (alias As NameEqualsSyntax, name As NameSyntax) As UsingDirectiveSyntax

Параметры

name
NameSyntax

Возвращаемое значение

Применяется к

UsingDirective(NameEqualsSyntax, TypeSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Создает новый экземпляр UsingDirectiveSyntax.

public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax? alias, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax namespaceOrType);
static member UsingDirective : Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (alias As NameEqualsSyntax, namespaceOrType As TypeSyntax) As UsingDirectiveSyntax

Параметры

namespaceOrType
TypeSyntax

Возвращаемое значение

Применяется к

UsingDirective(SyntaxToken, NameEqualsSyntax, NameSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs
Source:
UsingDirectiveSyntax.cs

Создает новый экземпляр UsingDirectiveSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::UsingDirectiveSyntax ^ UsingDirective(Microsoft::CodeAnalysis::SyntaxToken staticKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::NameEqualsSyntax ^ alias, Microsoft::CodeAnalysis::CSharp::Syntax::NameSyntax ^ name);
public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.SyntaxToken staticKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax alias, Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name);
public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.SyntaxToken staticKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax? alias, Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name);
static member UsingDirective : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (staticKeyword As SyntaxToken, alias As NameEqualsSyntax, name As NameSyntax) As UsingDirectiveSyntax

Параметры

staticKeyword
SyntaxToken
name
NameSyntax

Возвращаемое значение

Применяется к

UsingDirective(SyntaxToken, SyntaxToken, NameEqualsSyntax, NameSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
SyntaxFactory.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Создает новый экземпляр UsingDirectiveSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::UsingDirectiveSyntax ^ UsingDirective(Microsoft::CodeAnalysis::SyntaxToken usingKeyword, Microsoft::CodeAnalysis::SyntaxToken staticKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::NameEqualsSyntax ^ alias, Microsoft::CodeAnalysis::CSharp::Syntax::NameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxToken staticKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax alias, Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxToken staticKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax? alias, Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member UsingDirective : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (usingKeyword As SyntaxToken, staticKeyword As SyntaxToken, alias As NameEqualsSyntax, name As NameSyntax, semicolonToken As SyntaxToken) As UsingDirectiveSyntax

Параметры

usingKeyword
SyntaxToken
staticKeyword
SyntaxToken
name
NameSyntax
semicolonToken
SyntaxToken

Возвращаемое значение

Применяется к

UsingDirective(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, NameEqualsSyntax, TypeSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Создает новый экземпляр UsingDirectiveSyntax.

public static Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax UsingDirective (Microsoft.CodeAnalysis.SyntaxToken globalKeyword, Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxToken staticKeyword, Microsoft.CodeAnalysis.SyntaxToken unsafeKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax? alias, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax namespaceOrType, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member UsingDirective : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.NameEqualsSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax
Public Shared Function UsingDirective (globalKeyword As SyntaxToken, usingKeyword As SyntaxToken, staticKeyword As SyntaxToken, unsafeKeyword As SyntaxToken, alias As NameEqualsSyntax, namespaceOrType As TypeSyntax, semicolonToken As SyntaxToken) As UsingDirectiveSyntax

Параметры

globalKeyword
SyntaxToken
usingKeyword
SyntaxToken
staticKeyword
SyntaxToken
unsafeKeyword
SyntaxToken
namespaceOrType
TypeSyntax
semicolonToken
SyntaxToken

Возвращаемое значение

Применяется к