SPContentTypeCollection.Item property (String)
Gets the content type that has the specified name.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As SPContentType
Get
'Usage
Dim instance As SPContentTypeCollection
Dim name As String
Dim value As SPContentType
value = instance(name)
public SPContentType this[
string name
] { get; }
Parameters
name
Type: System.StringThe name of the content type.
Property value
Type: Microsoft.SharePoint.SPContentType
An SPContentType that represents the specified content type.
See also
Reference
SPContentTypeCollection members
Microsoft.SharePoint namespace