====== CanCreate ======
Method of [[:scripting:api:file-handler:start|IFileHandler]]
===== Description =====
Called to check, if given file can be created by handler
===== Parameters =====
* [[scripting:api:data-type:BSTR|BSTR]] **strDocumentType** = %%""%% (optional)
==== Return Value ====
* [[scripting:api:data-type:long|long]] **pnConfidence**
===== Syntax =====
==== JavaScript ====
var pnConfidence = FileHandler.CanCreate(strDocumentType);
==== Visual Basic Script ====
pnConfidence = FileHandler.CanCreate strDocumentType
==== C++ ====
long nConfidence;
HRESULT hr = FileHandler.CanCreate(strDocumentType, &nConfidence);
===== See Also =====
[[:scripting:api:file-handler:start|IFileHandler]]
~~NOTOC~~