ContentTypeExtensionsGetContentType Method Document Toolkit Help
Finds the content type for specified part in a list of content types.

Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: (

public static ContentType GetContentType(
	this IEnumerable<ContentType> contentTypes,
	Uri partUri


Type: System.Collections.GenericIEnumerableContentType
The content types.
Type: SystemUri
The part URI.

Return Value

Type: ContentType
The content type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableContentType. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also