GlobalConfig.GetResourcePropAttrib Method (PIA)

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

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Configuration
Imports Microsoft.CommerceServer.Interop     ‘ for IDictionary
…
Public Function GetResourcePropAttrib(strResourceName As String,
  strPropName As String) As IDictionary

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
using Microsoft.CommerceServer.Interop;             //For IDictionary
…
public IDictionary GetResourcePropAttrib(stringstrResourceName,
  stringstrPropName);

Parameters

[Visual Basic .NET]

  • strResourceName
    A String that contains the resource name.
  • strPropName
    A String that contains the resource property name.

[C#]

  • strResourceName
    A string that contains the resource name.
  • strPropName
    A string that contains the resource property name.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a reference to an Object that implements the IDictionary interface containing the key/value pairs that denote the attributes of the specified property of the specified resource.

[C#] This method returns an IDictionary interface to a Dictionary object.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

[C#] The Initialize method must be called before this method can be called.

[Visual Basic .NET]

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)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_mscscfg (in cs_mscscfg.dll)

See Also

GlobalConfig****Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.