IDataModelScriptManager::FindProviderForScriptType method (dbgmodel.h)
The FindProviderForScriptExtension method searches the script manager for a provider which has claims to support a given file extension as indicated by the scriptExtension argument. If one cannot be found, this method will fail; otherwise, such script provider will be returned to the caller.
Syntax
HRESULT FindProviderForScriptType(
PCWSTR scriptType,
IDataModelScriptProvider **provider
);
Parameters
scriptType
A string which describes the type of script being searched for (e.g.: JavaScript)
provider
If a provider can be found which supports the type of script given by the scriptType argument, it will be returned here.
Return value
This method returns HRESULT that indicates success or failure.
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |