Partager via


ContentTypeAttribute, constructeur

Initialise une nouvelle instance de ContentTypeAttribute.

Espace de noms :  Microsoft.VisualStudio.Utilities
Assembly :  Microsoft.VisualStudio.CoreUtility (dans Microsoft.VisualStudio.CoreUtility.dll)

Syntaxe

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

Paramètres

  • name
    Type : String

    Nom du type de contenu. Les noms de type de contenu sont sensibles à la casse.

Exceptions

Exception Condition
ArgumentNullException

name est nullune référence null (Nothing en Visual Basic) ou est une chaîne vide.

Sécurité .NET Framework

Voir aussi

Référence

ContentTypeAttribute Classe

Microsoft.VisualStudio.Utilities, espace de noms