Get Method

This method retrieves a parameter for the project.

Syntax

ReplicationProject.Get(ParamName)

Parameters

ParamName

The name of the parameter to retrieve.

Remarks

For a list of Content Deployment project parameters, see the Parameters appendix.

Example

The following example retrieves the value of the TransactionMethod parameter 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)

TMethod = ReplProject.Get("TransactionMethod")
if TMethod = "Yes" then
  Wscript.Echo "MyProject uses transaction processing."
else
  Wscript.Echo "MyProject does not use transaction processing."
end if
'Release objects
set ReplProject = Nothing
set ReplServer  = Nothing

See Also

Put


© 1997-1998 Microsoft Corporation. All rights reserved.