Share via


SPContentType.Name property

Gets or sets the content type name.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

public string Name { get; set; }

Property value

Type: System.String
The content type name.

Remarks

Before you set a value for this property, you should use the ValidateName(String) method to determine whether the proposed name is valid.

The value that is returned by the Name property can be localized so that it changes with the value of the current thread's CurrentUICulture property. For more information, see the DescriptionResource property.

See also

Reference

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

NameResource