Constants

[This documentation is preliminary and is subject to change.]

The Constants object contains predefined constant values that can be used in various methods and properties to improve code readability.

Methods

The Constants object does not define any methods.

Properties

The Constants object has the following properties.

Property Description
ClusterTypeCertification Retrieves a value which specifies that an RMS cluster supports a certification service.
ClusterTypeLicensing Retrieves a value which specifies that an RMS cluster supports a licensing service.
ExcludedDomainUserType Retrieves a value that specifies a domain user account.
ExcludedExternalUserType Retrieves a value that specifies an external user account.
ExcludedFederationUserType Retrieves a value that specifies a federated user account.
KeyHierarchyOther Retrieves a value that specifies an undefined certificate hierarchy.
KeyHierarchyPreproduction Retrieves a value that specifies a Pre-production certificate hierarchy.
KeyHierarchyProduction Retrieves a value that specifies a production certificate hierarchy.
ProxySchemeBasic Retrieves a value that specifies Basic authentication for a proxy server.
ProxySchemeDigest Retrieves a value that specifies Digest authentication for a proxy server.
ProxySchemeWindowsIntegrated Retrieves a value that specifies Windows Integrated authentication for a proxy server.
RoleAdministrator Retrieves a value that specifies administrator privileges.
RoleAuditor Retrieves a value that specifies auditor privileges.
RoleTemplateEditor Retrieves a value that specifies template editor privileges.
ServiceAccountTypeDomainIdentity Retrieves a value that identifies a domain service account type.
ServiceAccountTypeLocalService Retrieves a value that specifies a LocalService service account type.
ServiceAccountTypeLocalSystem Retrieves a value that specifies a LocalSystem service account type.
ServiceAccountTypeNetworkService Retrieves a value that specifies a NetworkService service account type.
ServiceAccountTypeUnknown Retrieves a value that specifies an unknown service account type.
TemplateExpirationTypeNever Retrieves a value which specifies that protected content never expires.
TemplateExpirationTypeOnDate Retrieves a value that specifies the date on which protected content expires.
TemplateExpirationTypeUntilDays Retrieves a value which specifies the number of days after publication that protected content expires.
TemplateRightAllowMacros Retrieves a value that specifies a right to allow macros in content.
TemplateRightEdit Retrieves a value that specifies a right to edit content.
TemplateRightExport Retrieves a value that specifies a right to export content.
TemplateRightExtract Retrieves a value that specifies a right to extract content.
TemplateRightForward Retrieves a value that specifies a right to forward content.
TemplateRightFullControl Retrieves a value that specifies a right to fully control content.
TemplateRightPrint Retrieves a value that specifies a right to print content.
TemplateRightReply Retrieves a value that specifies a right to reply to a mail message.
TemplateRightReplyAll Retrieves a value that specifies a right to reply all members identified in a mail message.
TemplateRightSave Retrieves a value that specifies a right to save content.
TemplateRightView Retrieves a value that specifies a right to view content.
TemplateRightViewRights Retrieves a value that specifies a right to view content rights.

Example Code [VBScript]

DIM config_manager
DIM admin_role
DIM constant

' *******************************************************************
' Create and initialize a ConfigurationManager object.

SUB InitObject()

  CALL WScript.Echo( "Create ConfigurationManager object...")
  SET config_manager = CreateObject _
    ("Microsoft.RightsManagementServices.Admin.ConfigurationManager")      
  CheckError()
    
  CALL WScript.Echo( "Initialize...")
  admin_role=config_manager.Initialize(false,"localhost",80,"","","")
  CheckError()

  ' Retrieve the Constants object.
  SET constant = config_manager.Constants

END SUB

' *******************************************************************
' Error checking function.

FUNCTION CheckError()
  CheckError = Err.number
  IF Err.number <> 0 THEN
    CALL WScript.Echo( vbTab & "*****Error Number: " _
                       & Err.number _
                       & " Desc:" _
                       & Err.Description _
                       & "*****")
    WScript.StdErr.Write(Err.Description)
    WScript.Quit( Err.number )
  END IF
END FUNCTION

Requirements

Product Requires Windows ServerĀ "Longhorn".
Library

Use Microsoft.RightsManagementServices.Admin.dll registered as a custom type library.

See Also

Active Directory Rights Management Services Scripting API