Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to v2.
Indicates whether an extension is registered.
Namespace: Microsoft.WebMatrix.Extensibility.Editor
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Function IsRegisteredExtension ( _
filePath As String, _
<OutAttribute> ByRef contentTypeName As String _
) As Boolean
'Usage
Dim instance As IFileTypeManagementService
Dim filePath As String
Dim contentTypeName As String
Dim returnValue As Boolean
returnValue = instance.IsRegisteredExtension(filePath, _
contentTypeName)
bool IsRegisteredExtension(
string filePath,
out string contentTypeName
)
bool IsRegisteredExtension(
String^ filePath,
[OutAttribute] String^% contentTypeName
)
abstract IsRegisteredExtension :
filePath:string *
contentTypeName:string byref -> bool
function IsRegisteredExtension(
filePath : String,
contentTypeName : String
) : boolean
Parameters
filePath
Type: System.StringThe file path.
contentTypeName
Type: System.String%The content type.
Return Value
Type: System.Boolean
true if an extension is registered; otherwise, false.