The ChangePollRate property gets or sets the time (in seconds) that each array member will wait before checking the current Configuration Storage server for configuration changes again.
HRESULT put_ChangePollRate( long lChangePollRate ); HRESULT get_ChangePollRate( long* plChangePollRate );
Pointer to a variable that is set on return to a 32-bit integer specifying the time (in seconds) that each array member will wait before checking the current Configuration Storage server for configuration changes again.
A 32-bit integer that specifies the time (in seconds) that each array member will wait before checking the current Configuration Storage server for configuration changes again.
These property methods return S_OK if the call is successful; otherwise, they return an error code.
Property ChangePollRate As Long
A 32-bit integer that specifies the time (in seconds) that each array member will wait before checking the current Configuration Storage server for configuration changes again.
Sub SetChangePollRate(css, userName, domain, password, newValue) ' Declare the objects needed. Dim root ' The FPCLib.FPC root object Dim isaArray ' An FPCArray object Dim cssCn ' An FPCConfigurationStorageServerConnection object Dim currentValue ' An Integer ' Create the root object. Set root = CreateObject("FPC.Root") ' Connect to the Configuration Storage server. root.ConnectToConfigurationStorageServer css, userName, domain, password ' Get references to the array object ' and the connection object. Set isaArray = root.GetContainingArray() Set cssCn = isaArray.ConfigurationStorageServerConnection ' Change the value of the property if necessary. currentValue = cssCn.ChangePollRate WScript.Echo "Current polling rate: " & currentValue If CInt(newValue) <> currentValue Then cssCn.ChangePollRate = newValue WScript.Echo "Saving the new value " & newValue & " ..." isaArray.Save WScript.Echo "Done!" End If End Sub
This property is read/write. Its default value is 15 seconds, and its range of permissible values is from 3 through 999,999.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
FPCConfigurationStorageServerConnection
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.