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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.