Finds the content type for specified part in a list of content types.
Namespace: FirstFloor.DocumentsAssembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)
Syntax
| C# |
|---|
public static ContentType GetContentType( this IEnumerable<ContentType> contentTypes, Uri partUri ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function GetContentType ( _ contentTypes As IEnumerable(Of ContentType), _ partUri As Uri _ ) As ContentType |
| Visual C++ |
|---|
[ExtensionAttribute] public: static ContentType^ GetContentType( IEnumerable<ContentType^>^ contentTypes, Uri^ partUri ) |
Parameters
- contentTypes
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'ContentType>)>)>
The content types.
- partUri
- Type: System..::..Uri
The part URI.