AllNames Property of the IFPCClientSettingsSection Interface

The AllNames property gets the names of the keys of all the entries in the Firewall client settings section.

[C++]
HRESULT get_AllNames(
	VARIANT* pItem
);

Parameters

pItem

Pointer to a VARIANT that on return receives a safe array of strings containing the names of the keys of all the entries in the Firewall client settings section.

Return Value

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

[Visual Basic]
Property AllNames As Variant

Property Value

Array of strings containing the names of the keys of all the entries in the Firewall client settings section.

Example Code

This VBScript script displays all the sections of Firewall client settings for an array. It does not include error handling.
' Create the root object.
Dim root  ' The FPCLib.FPC root object
Set root = CreateObject("FPC.Root")
' Declare the other objects needed.
Dim isaArray			 ' An FPCArray object
Dim clientConfigSettings   ' An FPCClientConfigSettings collection
Dim clientSettingsSection  ' An FPCClientSettingsSection object
Dim allNames			 ' A Variant
Dim name				 ' A String
Dim index				' An Integer
' Get references to the array object and the 
' Firewall client configuration settings collection.
Set isaArray = root.GetContainingArray()
Set clientConfigSettings = isaArray.FWClientConfigSettings
' Display the sections of Firewall client settings
' for the array.
For Each clientSettingsSection In clientConfigSettings
	WScript.Echo "[" & clientSettingsSection.Name & "]"
	allNames = clientSettingsSection.AllNames
	For Each name In allNames
		WScript.Echo name & "=" & clientSettingsSection.Value(name)
	Next
	WScript.Echo vbCrLf
Next

Remarks

This property is read-only. Its default value is an empty array of strings.

The AllNames property retrieves a safe array of all the keys in the Firewall client settings section. New entries are added in the form of {key, value} pairs by using the Value property, and entries are removed by calling the RemoveValue method.

Requirements

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.

See Also

FPCClientSettingsSection


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.