Skip to content

EnumName Structure#

Defines an enum parameter name by combining the parameter name string and the parameter type information.

Syntax#

C#

public struct EnumName

VB

Public Structure EnumName

The EnumName type exposes the following members.

Constructors#

NameDescription
Public methodEnumName Creates an enum parameter name.
 

Properties#

NameDescription
Public propertyName The enum parameter name as string.
 

Methods#

NameDescription
Public methodToString The enum parameter name as string. (Overrides ValueType.ToString().)
 

Operators#

NameDescription
Public operatorStatic memberExplicit(String to EnumName) Creates an enum parameter name from a string.
Public operatorStatic memberImplicit(ParameterListEnum to EnumName) The class EnumNameProvider can be automatically converted into an EnumName.
 

EnumName Explicit Conversion (String to EnumName)#

Creates an enum parameter name from a string.

Syntax#

C#

public static explicit operator EnumName (
    string name
)

VB

Public Shared Narrowing Operator CType ( 
    name As String
) As EnumName

Parameters#

 

name
Type: System.String
The name of the parameter as string. The name can include path information.

Return Value#

Type: EnumName
Returns the enum parameter name.

EnumName Implicit Conversion (ParameterListEnum to EnumName)#

The class EnumNameProvider can be automatically converted into an EnumName.

Syntax#

C#

public static implicit operator EnumName (
    ParameterListEnum name
)

VB

Public Shared Widening Operator CType ( 
    name As ParameterListEnum
) As EnumName

Parameters#

 

name
Type: Basler.Pylon.ParameterListEnum
The name of the parameter. Must be an object deriving from EnumNameProvider.

Return Value#

Type: EnumName
Returns the enum parameter name.

EnumName.ToString Method#

The enum 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 enum parameter name as string. The name can include path information.

EnumName Constructor#

Creates an enum parameter name.

Syntax#

C#

public EnumName(
    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.

EnumName.Name Property#

The enum parameter name as string.

Syntax#

C#

public string Name { get; }

VB

Public ReadOnly Property Name As String
    Get

Property Value#

Type: String

EnumName Type Conversions#

The EnumName type exposes the following members.

Operators#

NameDescription
Public operatorStatic memberExplicit(String to EnumName) Creates an enum parameter name from a string.
Public operatorStatic memberImplicit(ParameterListEnum to EnumName) The class EnumNameProvider can be automatically converted into an EnumName.