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: StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.