Share via


GlobalConfig.GetResourcePropAttrib

Ee825099.c++_on(en-US,CS.10).gifEe825099.vb_off(en-US,CS.10).gif

Use this method to get a dictionary of key/value pairs that denote the attributes of the specified property of the specified resource.

Definition

Function GetResourcePropAttrib(strResourceName As String,strPropName As String) As Object

Parameters

strResourceName

A String that contains the resource name.

strPropName

A String that contains the resource property name.

Return Values

If this method completes successfully, it returns an object reference to a Dictionary object containing the key/value pairs that denote the attributes of the specified property of the specified resource.

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.

All ADO, SQL, and ODBC errors will also be returned by this method.

Remarks

The Initialize method must be called before this method can be called.

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

Example

' dDict is a Dictionary object 
' sMyCatalog is an existing resource
' connstr_desc_Catalog is a valid Catalog resource property
' oGlobalConfig is a Commerce GlobalConfig object
dDict = _
oGlobalConfig.GetResourcePropAttrib(sMyCatalog, connstr_desc_Catalog)

See Also

GlobalConfig****Object


All rights reserved.