Export (0) Print
Expand All

IFileTypeManagementService.RegisterExtensionToContentType Method

Applies to v2.

Registers an extension to a content type.

Namespace:  Microsoft.WebMatrix.Extensibility.Editor
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

bool RegisterExtensionToContentType(
	string filePath,
	string contentTypeName
)

Parameters

filePath
Type: System.String

The file path of the extension.

contentTypeName
Type: System.String

The name of the content type.

Return Value

Type: System.Boolean
true if registered; otherwise, false.
Show:
© 2014 Microsoft