SPContentType.Description Property
Gets or sets a string that contains a description of the content type.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)] [ClientCallableAttribute] public string Description { get; set; }
Property Value
Type: System.StringText describing the content type. The default value is String.Empty.
| Exception | Condition |
|---|---|
| ArgumentNullException |
You are not permitted to set the property to a null value. |
The content type’s description is displayed in the user interface. The description can help a user who is creating a new list to decide whether the content type is appropriate for the list.
The value that is returned by the Description property can vary depending on the current thread's CurrentUICulture property. For more information, see the DescriptionResource property.