Template - addDotNetListPart

Template - addDotNetListPart

Description :

This command adds the root level .NET global assembly cache (GAC) to an existing template. This command returns a handle to the updated template. Note that this handle is different from any previously returned handles. All other handles are invalid.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateKey

DBKey

Handle to the existing template to which you want to add the .NET GAC.

bAuditDotNetAsmCacheEntryCodebase

Boolean

Audit option for GAC Codebase. True to turn option on, false otherwise.

bAuditDotNetAsmCacheEntryModifiedDate

Boolean

Audit option for GAC Last Modified date. True to turn option on, false otherwise.

Example

The following example shows how to add the .NET top level node to a template. You can add other top level nodes with options in a similar manner.

Script


# Name of the existing template. 

TEMPLATE_NAME="template1" 

# Group template in which template is stored. 

TEMPLATE_GROUP="/parent/group1" 

# Get the template DBKey using the above information. 

TEMPLATE_DBKEY=`blcli Template getDBKeyByGroupAndName $TEMPLATE_GROUP $TEMPLATE_NAME` 

# Adds the option to audit the GAC Codebase. Same as checking true in the GUI. 

OPTIONS="true" 

# Adds the option to audit the GAC last modified date. Same as checking true in the GUI. 

OPTIONS="${OPTIONS} true" 

# Now add the node to the template. 

TEMPLATE_DBKEY=`blcli Template addDotNetListPart $TEMPLATE_DBKEY $OPTIONS` 

# Use the returned DBKey to add more items to the template. 



Was this page helpful? Yes No Submitting... Thank you

Comments