JSRDotNETSDK Reference

# PulserSettingInfo.GetPropertyValue (PulserPropertyRole, Int32) Method

See Also

Gets the value of a property such as GainMin. While the setting name is 'Gain', there are possibly many properties associated with the gain setting. This method allows the reading of those properties, even if they aren't defined in the IPulserReceiver interface. For example, to read the GainIndex property, this method could be used like: pulserSettingInfo.GetPropertyValue(pulser, PulserPropertyRole.Index); The index is used for accessing properties when the pulser object has several properties with the same role, such as ReceiverModeEchoSupported, ReceiverModeThruSupported. For those, the index specifies the value of ReceiverMode that the property applies to, I.E. the numerical values of the RECEIVER_MODE enumeration.

Namespace: JSRDotNETSDK
Assembly: JSRDotNETSDK (in JSRDotNETSDK.dll)
Syntax

VB
C#
C++
JScript
Copy

    public object GetPropertyValue(
       PulserPropertyRole role,
       int index = 0
    )

    This language is not supported or no code example is available.

#### Parameters

role

  Type: PulserPropertyRole

  the property role.

index

  Type: int

  Zero-based index for some properties that have multiple versions which depend on an enum.

#### Return Value

The property.
Exceptions

Exception type | Condition
--- | ---
ExceptionJSRDotNET | Thrown when a JSR Dot NET error condition occurs.

See Also

#### Reference

PulserSettingInfo Class
PulserSettingInfo Members
JSRDotNETSDK Namespace