Finds the content type for specified part in a list of content types.

Namespace: FirstFloor.Documents
Assembly: 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.

Return Value

The content type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'ContentType>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also