SiteConfig.GetResourcePropAttrib Method (PIA)
Use this method to get a Dictionary object of key/value pairs that denote the attributes of the specified property of the specified resource.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop ‘ for IDictionary
Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Function GetResourcePropAttrib(strResourceName As String,
strPropName As String) As IDictionary
[C#]
using Microsoft.CommerceServer.Interop;
using Microsoft.CommerceServer.Interop.Configuration;
…
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 an object 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#] An object that implements the Microsoft.CommerceServer.Interop.IDictionary interface, used to return the key/value pairs that denote the attributes of the specified property of the specified resource.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
The Initialize method must be called before this method can be used.
[Visual Basic .NET]
Example
' dDict is a Dictionary object
' sMyCatalog is an existing resource
' connstr_desc_Catalog is a valid Catalog resource property
' oSiteConfig is a Commerce SiteConfig object
dDict = _
oSiteConfig.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
Copyright © 2005 Microsoft Corporation.
All rights reserved.