IVSMDDesignerService::RegisterDesignViewAttribute Method (Object^, Int32, Int32, String^)
Visual Studio 2015
Registers the specified attribute value for the specified file.
Assembly: Microsoft.VisualStudio.Designer.Interfaces (in Microsoft.VisualStudio.Designer.Interfaces.dll)
void RegisterDesignViewAttribute( Object^ pHier, int itemid, int dwClass, String^ pwszAttributeValue )
Parameters
- pHier
-
Type:
System::Object^
The T:Microsoft.VisualStudio.Shell.Interop.IVSHierarchy object.
- itemid
- Type: System::Int32
- dwClass
-
Type:
System::Int32
The index of the class. The only requirement is that it be unique for each class and be in increasing value for each class declared in the file.
- pwszAttributeValue
-
Type:
System::String^
The name of the attribute value.
This value is the result of the compiler searching the value passed to the constructor of the DesignerCategoryAttribute. If no such attribute is found, the compiler will pass null into the pwszAttribute value below. The value for dwClass is a number indicating the index of the class. Typical implementations of this may return either the line number on which the class is defined or a class count value.
Show: