The AllNames property gets the names of the keys of all the entries in the Firewall client settings section.
HRESULT get_AllNames( VARIANT* 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.
This property method returns S_OK if the call is successful; otherwise, it returns an error code.
Property AllNames As Variant
Array of strings containing the names of the keys of all the entries in the Firewall client settings section.
' 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
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.
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. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.