다음을 통해 공유


AddRefToGroupComponent Method

Adds a reference to a global resource so that a site can access that resource.

Namespace:  Microsoft.CommerceServer.Interop.Configuration
Assembly:  Microsoft.CommerceServer.Interop.Configuration.MSCSCfg (in Microsoft.CommerceServer.Interop.Configuration.MSCSCfg.dll)

Syntax

'Declaration
Public Sub AddRefToGroupComponent ( _
    bstrSiteResourceName As String, _
    bstrGroupResourceName As String _
)
'Usage
Dim instance As SiteConfigFreeThreaded
Dim bstrSiteResourceName As String
Dim bstrGroupResourceName As String

instance.AddRefToGroupComponent(bstrSiteResourceName, _
    bstrGroupResourceName)
public void AddRefToGroupComponent(
    string bstrSiteResourceName,
    string bstrGroupResourceName
)
public:
void AddRefToGroupComponent(
    String^ bstrSiteResourceName, 
    String^ bstrGroupResourceName
)
public function AddRefToGroupComponent(
    bstrSiteResourceName : String, 
    bstrGroupResourceName : String
)

Parameters

  • bstrSiteResourceName
    Type: System..::.String
    The name of the resource configuration object to be added to the site.
  • bstrGroupResourceName
    Type: System..::.String
    The name of the global resource configuration object to which a reference is being added.

Remarks

If you use this method to create a global resource, use the SiteConfigReadOnlyFreeThreaded object methods to ensure that the correct property values are read. To set the correct property values, use the GlobalConfigFreeThreaded object on the global resource that is referenced by this site-level resource.

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

Permissions

See Also

Reference

SiteConfigFreeThreaded Class

SiteConfigFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace