| ParticleParameterCollectionGetT Method (String, Boolean) |
Gets a particle parameter with the specified type and name. (If the type is wrong an
exception is thrown.)
Namespace: DigitalRune.ParticlesAssembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public IParticleParameter<T> Get<T>(
string name,
bool excludeInherited
)
Public Function Get(Of T) (
name As String,
excludeInherited As Boolean
) As IParticleParameter(Of T)
public:
generic<typename T>
IParticleParameter<T>^ Get(
String^ name,
bool excludeInherited
)
member Get :
name : string *
excludeInherited : bool -> IParticleParameter<'T>
Parameters
- name
- Type: SystemString
The name of the parameter (e.g. "Color", "Position", etc.). - excludeInherited
- Type: SystemBoolean
If set to only parameters of this
ParticleParameterCollection are returned. If set to
the parent particle systems are also scanned for uniform particle parameters with the
specified name.
Type Parameters
- T
- The type of the parameter value.
Return Value
Type:
IParticleParameterT
The particle parameter, or
if no particle parameter with the given
name was found.
Exceptions Exception | Condition |
---|
ParticleSystemException |
A particle parameter with the given name was found, but the parameter type cannot be cast to
type T.
|
See Also