Add-IisServerManagerMember

INTERNAL. Adds a ServerManager property and CommitChanges() method to an object.

Syntax

Add-IisServerManagerMember [-InputObject] <Object> [-ServerManager] <ServerManager> [-PassThru] [<CommonParameters>]

Description

This is an internal Carbon function for adding properties/methods to Microsoft.Web.Administration objects so that changes to them can be committed/saved. It adds a ServerManager property, which is a reference to the ServerManager object which instantiated this object and a CommitChanges method, which calls down to the ServerManager's CommitChanges method.

Parameters

Name Type Description Required? Pipeline Input Default Value
InputObject Object The object on which the server manager members will be added. true true (ByValue)
ServerManager ServerManager The server manager object to use as the basis for the new members. true false
PassThru SwitchParameter If set, will return the input object. false false False

EXAMPLE 1

$appPool | Add-IisServerManagerMember -ServerManager $manager -PassThru

Adds a ServerManager property and CommitChanges method to $appPool.