Partilhar via


ModelMeshCollection.TryGetValue Method

Finds a mesh with a given name if it exists in the collection.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public bool TryGetValue (
         string meshName,
         out ModelMesh value
)

Parameters

  • meshName
    The name of the mesh to find.
  • value
    [OutAttribute] The mesh named meshName, if found.

Return Value

true if the named mesh is found; false otherwise.

Exceptions

Exception type Condition
ArgumentNullException meshName is null.

See Also

Reference

ModelMeshCollection Class
ModelMeshCollection Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista