IPartExtensionFeature.TryGetExtension(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to retrieve a registered extension for the content type.
public bool TryGetExtension (string contentType, out string extension);
abstract member TryGetExtension : string * string -> bool
Public Function TryGetExtension (contentType As String, ByRef extension As String) As Boolean
Parameters
- contentType
- String
Content type to find extension for.
- extension
- String
Registered extension.
Returns
Whether an extension was found.