XdmWriterSettings.SetParameter Method (string, string)XdmWriterSettings.SetParameter Method (String, String)XdmWriterSettings::SetParameter Method (String^, String^)

Attempts to set the specified serialization parameter.

Syntax

Public Function SetParameter( _
    parameter As String, _
    value As String _
) As Boolean
public bool SetParameter(
    string parameter,
    string value
)
public:
bool SetParameter(
    String^ parameter, 
    String^ value
)
 

Parameters

parameter

Type: System.StringSystem.StringSystem::String^

The name of the serialization parameter.

value

Type: System.StringSystem.StringSystem::String^

The value of the serialization parameter.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the parameter was recognised, otherwise falseFalsefalse.

Exceptions

ExceptionCondition
XdmExceptionXdmExceptionXdmException value is not a valid value for the parameter parameter.

Remarks

If the parameter is not known then this method has no effect.