Click or drag to resize
WebPartInstance Methods

The WebPartInstance type exposes the following members.

Methods
  NameDescription
Public methodClearValues
Clears the given properties
Public methodClone
Clones the web part object (GUID stays the same when cloned).
Public methodFindVariant
Finds the variant with the given variant ID
Public methodGetValue
Returns the value of the given webpart property property.
Public methodGetXmlNode
Returns the XML node representing the webpart instance.
Public methodLoadProperties(DataRow)
Loads default values from specified DataRow to the webpart properties.
Public methodLoadProperties(WebPartInstance)
Loads the webpart properties from given webpart.
Public methodLoadVariants
Loads all the MVT/Content personalization variants for this web part instance.
Public methodResolvePropertyMacros
Resolves the property macros, replaces the {%propertyname%} macro with the property value.
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 MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
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