Compartilhar via


ContentTypeAttribute Constructor

Initializes a new instance of ContentTypeAttribute.

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String _
)
public ContentTypeAttribute(
    string name
)
public:
ContentTypeAttribute(
    String^ name
)
new : 
        name:string -> ContentTypeAttribute
public function ContentTypeAttribute(
    name : String
)

Parameters

  • name
    Type: String

    The content type name. Content type names are case-insensitive.

Exceptions

Exception Condition
ArgumentNullException

name is nulla null reference (Nothing in Visual Basic) or an empty string.

.NET Framework Security

See Also

Reference

ContentTypeAttribute Class

Microsoft.VisualStudio.Utilities Namespace