Share via


CommerceModule.DeclareResourceDependency (String, Type) Method (BCL)

Use this method to declare a dependency on a Commerce Server site resource.

Definition

[Visual Basic .NET]

Protected Shared Sub DeclareResourceDependency( _ByValresourceName As System.String, _
  ByValdependentType As System.Type _
) 

[C#]

protected static void DeclareResourceDependency(System.StringresourceName,
  System.TypedependentType);

Parameters

[Visual Basic .NET]

  • resourceName
    Name of the Commerce Server resource that the module depends on. May not be null.
  • dependentType
    The System.Type of the dependent module.

[C#]

  • resourceName
    Name of the Commerce Server resource that the module depends on. May not be null.
  • dependentType
    The System.Type of the dependent module.

Remarks

Throws the CommerceResourceDependencyException when the resource that the module is dependent upon does not exist. Throws the ArgumentNullException when one of the required arguments was passed as a null value.

Requirements

Namespace: Microsoft.CommerceServer.Runtime

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.