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 : StringNom 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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.