Microsoft Internet Security and Acceleration Server 2004 SDK

Enabled Property of IFPCSystemPolicyConfigGroup[C++]

FPCSystemPolicyConfigGroup.Enabled [Visual Basic]

[C++]

The Enabled property gets or sets a Boolean value that indicates whether the rules of the configuration group are enabled.

HRESULT get_Enabled(
  VARIANT_BOOL* pfEnabled
);

HRESULT put_Enabled(
  VARIANT_BOOL fEnabled
);

Parameters

pfEnabled
Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the rules of the configuration group are enabled, or to VARIANT_FALSE if the rules of the configuration group are disabled.
fEnabled
Boolean value that indicates whether the rules of the configuration group are enabled.

Return Values

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write.

[Visual Basic]

The Enabled property gets or sets a Boolean value that indicates whether the rules of the configuration group are enabled.

Property Enabled As Boolean

Property Value

Boolean value that indicates whether the rules of the configuration group are enabled.

Remarks

This property is read/write.

Example Code

This VBScript code example enables the Scheduled Download Jobs system policy configuration group if it is not enabled.

' Define an enumeration value.
const fpcSystemPolicyConfigGroup_Prefetcher = 12

' Create the root obect.
Dim root  ' The FPCLib.FPC root object
Set root = CreateObject("FPC.Root")

' Declare the other objects needed.
Dim array		 ' An FPCArray object
Dim configgroup   ' An FPCSystemPolicyConfigGroup object

' Get a reference to the array object.
Set array = root.GetContainingArray()

' Create an instance of the sytem policy configuration
' group object for the Job Scheduler service.
Set configgroup = array.SystemPolicy.CreateConfigurationGroupInstance(fpcSystemPolicyConfigGroup_Prefetcher)

' If the Scheduled Download Jobs system policy configuration group
' is disabled, enable it.
If configgroup.Enabled = False Then
	configgroup.Enabled = True
	configgroup.Save
End If

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCSystemPolicyConfigGroup