Compartir a través de


IContentTypeRegistryService.GetContentType Method

Gets the IContentType object with the specified type name.

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

Syntax

'Declaración
Function GetContentType ( _
    typeName As String _
) As IContentType
IContentType GetContentType(
    string typeName
)
IContentType^ GetContentType(
    String^ typeName
)
abstract GetContentType : 
        typeName:string -> IContentType 
function GetContentType(
    typeName : String
) : IContentType

Parameters

  • typeName
    Type: System.String
    The name of the content type. Name comparisons are case-insensitive.

Return Value

Type: Microsoft.VisualStudio.Utilities.IContentType
The content type, or nulla null reference (Nothing in Visual Basic) if no content type is found.

.NET Framework Security

See Also

Reference

IContentTypeRegistryService Interface

Microsoft.VisualStudio.Utilities Namespace