Platform SDK: DirectX

DirectMusicStyle.GetBand

The DirectMusicStyle.GetBand method gets a band object by name.

object.GetBand(name As String) As DirectMusicBand

Parameters

object
Object expression that resolves to a DirectMusicStyle object.
name
Name assigned to the band by the author of the style.

Return Values

If the method succeeds, it returns a DirectMusicBand object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to DMUS_E_FAIL.

See Also

DirectMusicStyle.GetBandName, DirectMusicStyle.GetDefaultBand