Partager via


ContentTypeCollection.GetById - Méthode

Returns the content type with the specified ID from the collection.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Function GetById ( _
    contentTypeId As String _
) As ContentType
'Utilisation
Dim instance As ContentTypeCollection
Dim contentTypeId As String
Dim returnValue As ContentType

returnValue = instance.GetById(contentTypeId)
public ContentType GetById(
    string contentTypeId
)

Paramètres

  • contentTypeId
    Type : System.String

    A string that contains the content type ID. It must not be une référence Null (Rien dans 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].

Valeur renvoyée

Type : Microsoft.SharePoint.Client.ContentType
A ContentType object that represents the content type.

Remarques

If a content type with the given identifier is not found in the collection, the server must return une référence Null (Rien dans Visual Basic).

Voir aussi

Référence

ContentTypeCollection classe

ContentTypeCollection - Membres

Microsoft.SharePoint.Client - Espace de noms