Click or drag to resize
WebPartZoneInstance Methods

The WebPartZoneInstance type exposes the following members.

Methods
  NameDescription
Public methodAddWebPart(Int32, Int32)
Adds a web part instance of a specified type to the webparts.
Public methodAddWebPart(WebPartInstance, Int32)
Add the web part to the zone. If the web part is present in different zone, creates a copy of the web part.
Public methodClearValues
Clears the given properties
Public methodClone
Returns the cloned zone instance object.
Public methodCloneWebPart
Clones the web part.
Public methodEnsureWebPartInstanceIdentificators
Ensures web part ControlID and instance GUID for current zone
Public methodStatic memberGetUniqueWebPartId
Returns unique web part ID within the given Page template.
Public methodGetValue
Returns the value of the given webpart property property.
Public methodGetWebPart(Guid)
Returns the web part instance with specified GUID or null when not found.
Public methodGetWebPart(String, Boolean)
Returns the web part instance with specified ID or null when not found.
Public methodGetXmlNode
Returns the Xml node representing the zone configuration.
Public methodLoadVariants
Loads all the MVT/Content personalization variants for this zone instance.
Public methodRemoveAllWebParts
Removes all web parts from the schema.
Public methodRemoveWebPart
Removes the web part instance from the schema.
Public methodSetValue
Sets the property value of the control.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also