Aracılığıyla paylaş


IPartExtensionFeature.TryGetExtension(String, String) Method

Definition

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.

Applies to