AttributeCollection(StateBag) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AttributeCollection class.
public:
AttributeCollection(System::Web::UI::StateBag ^ bag);
public AttributeCollection (System.Web.UI.StateBag bag);
new System.Web.UI.AttributeCollection : System.Web.UI.StateBag -> System.Web.UI.AttributeCollection
Public Sub New (bag As StateBag)
Parameters
- bag
- StateBag
An object that contains the attribute keys and their values from the opening tag of the server control.
Examples
The following example shows how to use the AttributeCollection constructor to create an instance of the class named it myAttributeCollection
. The code passes the control's ViewState property as a parameter argument.
myAttributeCollection = new AttributeCollection(ViewState);
myAttributeCollection = New AttributeCollection(ViewState)
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.