CommandName Structure#
Syntax#
C#
public struct CommandName
VB
Public Structure CommandName
The CommandName type exposes the following members.
Constructors#
Name | Description | |
---|---|---|
![]() | CommandName | Create a command parameter name. |
Properties#
Name | Description | |
---|---|---|
![]() | Name | Returns the command parameter name as string. |
Methods#
Name | Description | |
---|---|---|
![]() | ToString | Returns the command parameter name as string. (Overrides ValueType.ToString().) |
Operators#
Name | Description | |
---|---|---|
![]() ![]() | Explicit(String to CommandName) | A cast can be used to create a command parameter name from a string. |
CommandName Explicit Conversion (String to CommandName)#
A cast can be used to create a command parameter name from a string.
Syntax#
C#
public static explicit operator CommandName (
string name
)
VB
Public Shared Narrowing Operator CType (
name As String
) As CommandName
Parameters#
- name
- Type: System.String
The name of the parameter as string. The name can include path information.
Return Value#
Type: CommandName
Returns the command parameter name.
CommandName.ToString Method#
Returns the command parameter name as string.
Syntax#
C#
public override sealed string ToString()
VB
Public Overrides NotOverridable Function ToString As String
Return Value#
Type: String
Returns the command parameter name as string. The name can include path information.
CommandName Constructor#
Create a command parameter name.
Syntax#
C#
public CommandName(
string name
)
VB
Public Sub New (
name As String
)
Parameters#
- name
- Type: System.String
The name of the parameter as string. The name can include path information.
CommandName.Name Property#
Returns the command parameter name as string.
Syntax#
C#
public string Name { get; }
VB
Public ReadOnly Property Name As String
Get
Property Value#
Type: String
CommandName Type Conversions#
The CommandName type exposes the following members.
Operators#
Name | Description | |
---|---|---|
![]() ![]() | Explicit(String to CommandName) | A cast can be used to create a command parameter name from a string. |