wwDotNetBridge::SetStaticProperty

Sets a static property or Enum value. Same behavior as SetProperty() but with static properties.

o.SetStaticProperty(lcType,lcProperty,lcValue)

Parameters

lcType
Fully qualified type name as a string (System.Environment)

lcProperty
The name of the property to set

lcValue
The value to set it to

Example

*** Set a value of WestWind.Web.Log.App.ApplicationOfflineMessage property
loBridge.SetStaticProperty("Westwind.WebLog.App","ApplicationOfflineMessage","NEW VALUE")

*** Getting and setting an Enum value
lnEnum = loBridge.GetEnumValue("System.Windows.Forms.MessageBoxIcon.Warning")
? lnEnum  && 48

*** Set Enum Value
loBridge.SetStaticProperty("System.Windows.Forms.MessageBoxIcon",lnEnum)

See also:

Class wwDotNetBridge

© West Wind Technologies, 1996-2018 • Updated: 08/03/15
Comment or report problem with topic