VertexChannelNames.TryDecodeUsage Method
Note
This method is available only when developing for Windows.
Gets a vertex declaration usage enumeration from the encoded string format.
Syntax
'Declaration
Public Shared Function TryDecodeUsage ( _
encodedName As String, _
out usage As VertexElementUsage _
) As Boolean
public static bool TryDecodeUsage (
string encodedName,
out VertexElementUsage usage
)
public:
static bool TryDecodeUsage(
String encodedName,
out VertexElementUsage usage
)
Parameters
- encodedName
Type: String
Encoded name of a vertex declaration. - usage
Type: VertexElementUsage
[OutAttribute] Value of the declaration usage for the vertex declaration.
Return Value
Type: Boolean
true if the encoded name maps to a VertexElementUsage enumeration value; false otherwise.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
VertexChannelNames Class
VertexChannelNames Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP