Description
The factory is used to create instances of available parameter set types.
Public Methods
Example
Create an attitude parameter set.
[C#] |
---|
//Create an attitude parameter set.
IAgCrdnParameterSetAttitude parameterSet = (IAgCrdnParameterSetAttitude)provider.ParameterSets.Factory.Create(
"ParameterSetName", "Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude);
|
|
Determine if the specified parameter set type is supported.
[C#] |
---|
// Check if the specified parameter set type is supported.
if (provider.ParameterSets.Factory.IsTypeSupported(parameterSetType))
{
//Create a ParameterSet with the supported Type
IAgCrdnParameterSet parameterSet = provider.ParameterSets.Factory.Create(
"MyParameterSet", string.Empty,
parameterSetType);
}
|
|
Create an attitude parameter set.
[Visual Basic .NET] |
---|
'Create an attitude parameter set.
Dim parameterSet As IAgCrdnParameterSetAttitude = DirectCast(provider.ParameterSets.Factory.Create("ParameterSetName", "Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude), IAgCrdnParameterSetAttitude)
|
|
Determine if the specified parameter set type is supported.
[Visual Basic .NET] |
---|
' Check if the specified parameter set type is supported.
If provider.ParameterSets.Factory.IsTypeSupported(parameterSetType) Then
'Create a ParameterSet with the supported Type
Dim parameterSet As IAgCrdnParameterSet = provider.ParameterSets.Factory.Create("MyParameterSet", String.Empty, parameterSetType)
End If
|
|