Partager via


SpObjectToken CreateInstance method (SAPI 5.3)

Microsoft Speech API 5.3

Object: SpObjectToken

CreateInstance Method

The CreateInstance method creates an instance of the object represented by the token.

  
    SpObjectToken.CreateInstance(
     [pUnkOuter As IUnknown = Nothing],
     [ClsContext As SpeechTokenContext = STCALL]
) As IUnknown

Parameters

  • pUnkOuter
    [Optional] Specifies the pUnkOuter. By default, the Nothing value is used.
  • ClsContext
    [Optional] Specifies the ClsContext. By default STCALL is used.

Return Value

An IUnknown object, representing the object instantiated.

Example

For an example of the use of the CreateInstance method, see the code example in the SpAudioFormat Type section.