Settings.SetInstanceValue<T> Method (Setting<T>, MonitoringObject, T)
Applies To: Operations Manager for System Center 2012
Sets the specified setting's value to the specified value in a MonitoringObject instance.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public void SetInstanceValue<T>(
Setting<T> setting,
MonitoringObject instance,
T settingValue
)
public:
generic<typename T>
void SetInstanceValue(
Setting<T>^ setting,
MonitoringObject^ instance,
T settingValue
)
member SetInstanceValue<'T> :
setting:Setting<'T> *
instance:MonitoringObject *
settingValue:'T -> unit
Public Sub SetInstanceValue(Of T) (
setting As Setting(Of T),
instance As MonitoringObject,
settingValue As T
)
Parameters
setting
Type: Microsoft.EnterpriseManagement.Administration.Setting<T>The setting to set a value for.
instance
Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectThe MonitoringObject instance to set the value of the setting in.
settingValue
Type: TThe value for the setting in the MonitoringObject instance.
Type Parameters
- T
The type of object the setting represents
See Also
Settings Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top