This documentation is archived and is not being maintained.

IUpdatable.CreateResource Method

Creates the resource of the specified type and that belongs to the specified container.

Namespace:  System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)

Object CreateResource(
	string containerName,
	string fullTypeName


Type: System.String
The name of the entity set to which the resource belongs.
Type: System.String
The full namespace-qualified type name of the resource.

Return Value

Type: System.Object
The object representing a resource of specified type and belonging to the specified container.

CreateResource is called to insert a new resource by the HTTP POST method. The first parameter points to the container that the resource belongs to and the second parameter is the namespace-qualified name of the resource type that needs to be created.

The second parameter is most useful when using inheritance. The return type need not be the actual CLR instance of the resource. It can be anything, for example, a cookie, that the implementation requires.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.