Метод ContentTypeCollection.GetById
Returns the content type with the specified ID from the collection.
Пространство имен: Microsoft.SharePoint.Client
Сборки: Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)
Синтаксис
'Декларация
Public Function GetById ( _
contentTypeId As String _
) As ContentType
'Применение
Dim instance As ContentTypeCollection
Dim contentTypeId As String
Dim returnValue As ContentType
returnValue = instance.GetById(contentTypeId)
public ContentType GetById(
string contentTypeId
)
Параметры
contentTypeId
Тип: System.StringA string that contains the content type ID. It must not be пустая ссылка (Nothing в Visual Basic). It must conform to the following ABNF: nonzero-digit = "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9"digit = "0" / nonzero-digitnonzero-hexdigit = nonzero-digit / "A" / "B" / "C" / "D" / "E" / "F"hexdigit = "0" / nonzero-hexdigitid = *(nonzero-hexdigit hexdigit / "0" nonzero-hexdigit)parentids = *(16(hexdigit hexdigit))contentTypeId = id [ "00" parentids].
Возвращаемое значение
Тип: Microsoft.SharePoint.Client.ContentType
A ContentType object that represents the content type.
Замечания
If a content type with the given identifier is not found in the collection, the server must return пустая ссылка (Nothing в Visual Basic).