SPContentTypeCollection.Item property (String)
取得具有指定的名稱的內容類型。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Default Property Item ( _
name As String _
) As SPContentType
Get
'用途
Dim instance As SPContentTypeCollection
Dim name As String
Dim value As SPContentType
value = instance(name)
public SPContentType this[
string name
] { get; }
參數
name
Type: System.String內容的型別名稱。
Property value
Type: Microsoft.SharePoint.SPContentType
SPContentType ,表示指定的內容類型。
請參閱
參照
SPContentTypeCollection members
Microsoft.SharePoint namespace