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
- itemName
Type: System.String
- objectValue
Type: System.Object
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.