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