CatalogChangeContext.AttachResource Method
Adds this resource to the change context. It will be sent to the server when Save() is called. Note that service definitions that exist as service references will be created if they are new and updated if they are not.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Sub AttachResource ( _
resource As CatalogResource _
)
public void AttachResource(
CatalogResource resource
)
public:
void AttachResource(
CatalogResource^ resource
)
member AttachResource :
resource:CatalogResource -> unit
public function AttachResource(
resource : CatalogResource
)
Parameters
resource
Type: Microsoft.TeamFoundation.Framework.Client.CatalogResourceThe resource to update.
.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.