Partager via


ServicingContext.AddItemIfNotDefined Method

Add an item if it does not already exist.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub AddItemIfNotDefined ( _
    itemName As String, _
    objectValue As Object _
)
public void AddItemIfNotDefined(
    string itemName,
    Object objectValue
)
public:
void AddItemIfNotDefined(
    String^ itemName, 
    Object^ objectValue
)
member AddItemIfNotDefined : 
        itemName:string * 
        objectValue:Object -> unit
public function AddItemIfNotDefined(
    itemName : String, 
    objectValue : Object
)

Parameters

.NET Framework Security

See Also

Reference

ServicingContext Class

Microsoft.TeamFoundation.Framework.Server Namespace