A Sandcastle Documented Class Library

# IParameterService GetParameterValueFromQueryString Method (Guid, Guid, String, ParameterValueTypes)

Gets a ParameterValue from a QueryStringValue, if the ParameterValueTypes value of the returned ParameterValue does not match the type requested by valueType then a ParameterValue with a Token of NoSelection will be returned.

Namespace: Dundas.BI.Data.Parameters
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    ParameterValue GetParameterValueFromQueryString(
    	Guid entityId,
    	Guid parameterId,
    	string queryStringValue,
    	ParameterValueTypes valueType
    )

    Function GetParameterValueFromQueryString (
    	entityId As Guid,
    	parameterId As Guid,
    	queryStringValue As String,
    	valueType As ParameterValueTypes
    ) As ParameterValue

    ParameterValue^ GetParameterValueFromQueryString(
    	Guid entityId,
    	Guid parameterId,
    	String^ queryStringValue,
    	ParameterValueTypes valueType
    )

    abstract GetParameterValueFromQueryString :
            entityId : Guid *
            parameterId : Guid *
            queryStringValue : string *
            valueType : ParameterValueTypes -> ParameterValue

#### Parameters

entityId
  Type: System
  Guid
  The entity ID.
parameterId
  Type: System
  Guid
  The parameter ID.
queryStringValue
  Type: System
  String
  The string that needs to be converted.
valueType
  Type: Dundas.BI.Data.Parameters
  ParameterValueTypes
  The ParameterValueTypes expected to be returned if compatible.

#### Return Value

Type: ParameterValue
A ParameterValue created according to the string in the QueryStringValue.
Exceptions

Exception | Condition
--- | ---
ArgumentException | entityId is Empty or the value of queryStringValue is an empty string.
ArgumentNullException | queryStringValue is .
NotFoundException | IAnalysisStructure cannot be found for the entityId.

See Also

#### Reference

IParameterService Interface
GetParameterValueFromQueryString Overload
Dundas.BI.Data.Parameters Namespace