SPContentTypeCollection.Add(SPContentType) SPContentTypeCollection.Add(SPContentType) SPContentTypeCollection.Add(SPContentType) SPContentTypeCollection.Add(SPContentType) Method

Definition

public:
 Microsoft::SharePoint::SPContentType ^ Add(Microsoft::SharePoint::SPContentType ^ contentType);
[Microsoft.SharePoint.Client.ClientCallableExceptionConstraint(Condition="A ContentType with the same name exists.", ErrorCode=183, ErrorType=typeof(Microsoft.SharePoint.SPException), FixedId="a")]
[Microsoft.SharePoint.Client.ClientCallableMethod(AddReturnValueToCollection=true, ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, Name="AddExistingContentType", ReturnObjectIdentity=true)]
public Microsoft.SharePoint.SPContentType Add (Microsoft.SharePoint.SPContentType contentType);
member this.Add : Microsoft.SharePoint.SPContentType -> Microsoft.SharePoint.SPContentType
Public Function Add (contentType As SPContentType) As SPContentType

Parameters

Returns

Applies to