SPContentTypeCollection.Item Property (String)
Gets the content type that has the specified name.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Item ( _
name As String _
) As SPContentType
Get
'Usage
Dim instance As SPContentTypeCollection
Dim name As String
Dim value As SPContentType
value = instance.Item(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