ModelBoneCollection.TryGetValue Method
Finds a bone with a given name if it exists in the collection.
Syntax
'Declaration
Public Function TryGetValue ( _
boneName As String, _
out value As ModelBone _
) As Boolean
public bool TryGetValue (
string boneName,
out ModelBone value
)
public:
bool TryGetValue(
String boneName,
out ModelBone value
)
Parameters
- boneName
Type: String
The name of the bone to find. - value
Type: ModelBone
[OutAttribute] The bone named boneName, if found.
Return Value
Type: Boolean
true if the named bone is found, otherwise false.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | boneName is null. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
ModelBoneCollection Class
ModelBoneCollection Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone