Compartilhar via


Constants object

The Constants object contains predefined constant values that can be used in various methods and properties to improve code readability. You can retrieve the object by calling the Constants property on the ConfigurationManager object.

Members

The Constants object has these types of members:

Properties

The Constants object has these properties.

Property Description
ClusterTypeCertification
Retrieves a value that specifies that an RMS cluster supports a certification service.
ClusterTypeLicensing
Retrieves a value that 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.
TemplateExpirationTypeNever
Retrieves a value that specifies that protected content never expires.
TemplateExpirationTypeOnDate
Retrieves a value that specifies the date on which protected content expires.
TemplateExpirationTypeUntilDays
Retrieves a value that 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 an email message.
TemplateRightReplyAll
Retrieves a value that specifies a right to reply all members identified in an email 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.

Examples

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

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Assembly
Microsoft.RightsManagementServices.Admin.dll

See also

Active Directory Rights Management Services Scripting API Reference