Share via


AppConfig.GetOptionsDictionary

Ee784397.c++_on(en-US,CS.10).gifEe784397.vb_off(en-US,CS.10).gif

Use this method to retrieve a Dictionary object that contains the site configuration information.

Definition

Function GetOptionsDictionary(bstrUserID As String) As Object

Parameters

bstrUserID

A String that contains an empty string ("").

Return Values

If this method completes successfully, it returns a reference to a Dictionary object that contains the site configuration information.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Some options dictionary keys, such as i_AuctionOptions, are reserved for future use. The following table lists the names of the keys in the Dictionary object returned by this method that are mapped in the Microsoft Management Console (MMC).

Programmatic Name MMC Default Config Mapping
i_AddItemRedirectOptions Add item redirect options
i_AddressBookOptions Address Book Options
f_AltCurrencyConversionRate Currency: Alternate currency conversion Rate
i_AltCurrencyLocale Currency: Alternate currency locale
i_AltCurrencyOptions Currency: Alternate currency options
i_BaseCurrencyLocale Currency: Base currency locale
i_BillingOptions Payment options: Billing options
i_BizTalkOptions BizTalk Options
i_CookiePathCorrectionOptions Cookie Path Correction Options
i_CurrencyDisplayOrderOptions Currency: Currency display order options
i_DelegatedAdminOptions Delegated admin options
i_FormLoginOptions Form login options
i_FormLoginTimeOut AuthManager Auth ticket Timeout
i_HostNameCorrectionOptions Host Name Correction Options
i_PaymentOptions Payment options
i_SitePrivacyOptions Site privacy options
i_SiteRegistrationOptions Site registration options
i_SiteTicketOptions Site ticket options
s_AltCurrencySymbol Currency: Alternate currency symbol
s_BaseCurrencySymbol Currency: Base currency symbol
s_BizTalkCatalogDocType BizTalk Catalog Doc Type
s_BizTalkConnString BizTalk connection String
s_BizTalkOrderDocType BizTalk PO Doc Type
s_BizTalkSourceQualifierID BizTalk Source Org Qualifier
s_BizTalkSourceQualifierValue BizTalk Org Qualifier Value
s_BizTalkSubmittypeQueue BizTalk Submit type
s_PageEncodingCharset Page encoding charset
s_SMTPServerName SMTP server name
s_WeightMeasure Unit of Measure for Weight

The following table lists keys in the Dictionary object returned by this method that are not mapped in the MMC.

Programmatic Name Value or Description
i_IsFullTextSearchInstalled Indicates whether SQL Server has full text search enabled
s_BizDataStoreConnectionString Profile Service: s_BizDataStoreConnectionString
s_CampaignsConnectionString Campaigns: connstr_db_Campaigns
s_CatalogConnectionString Product Catalog: connstr_db_Catalog
s_CommerceProviderConnectionString Profile Service: s_CommerceProviderConnectionString
s_NonSecureHostname This value is set in the global.asa file to the non-secure host name of the application.
s_ProfileServiceConnectionString Profile Service: s_ProfileServiceConnectionString
s_SecureHostname This value is set in the global.asa file to the secure host name of the application.
s_SiteName Name of the Site
s_TransactionConfigConnectionString Transaction Config: connstr_db_TransactionConfig
s_TransactionsConnectionString Transactions: connstr_db_Transactions

Example

' oAppConfig is a Commerce.AppConfig object
' dDictConfig is a Dictionary object
Set dictConfig = oAppConfig.GetOptionsDictionary("") 
For Each sKey In dictConfig 
    Response.Write sKey & "=" & dictConfig.Value(sKey)
Next

See Also

AppConfig Object


All rights reserved.