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
See Also