Previous in Contents Next in Contents

Get Method

This method retrieves a property for the project.

Syntax

ReplicationProject.Get(PropName)

Parameters

PropName

The name of the property to retrieve.

Remarks

For a list of Content Deployment project properties, see the Global Properties appendix.

Example

The following example retrieves the value of the Depth property (the number of times to follow links off the root page or the depth to go in the directory structure) for MyProject.

Option Explicit 
On Error Resume Next 

const OPEN_EXISTING_PROJECT  = 2

dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")

dim ReplProject
set ReplProject = ReplServer.OpenProject("MyProject", 
  OPEN_EXISTING_PROJECT)

Wscript.Echo "MyProject goes " & ReplProject.Get("Depth") & " hops deep."

'Release objects
set ReplProject = Nothing
set ReplServer  = Nothing

See Also

Put


© 1997-2000 Microsoft Corporation. All rights reserved.