Edit

Share via


IUpdatable.CreateResource(String, String) Method

Definition

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

public:
 System::Object ^ CreateResource(System::String ^ containerName, System::String ^ fullTypeName);
public object CreateResource (string containerName, string fullTypeName);
abstract member CreateResource : string * string -> obj
Public Function CreateResource (containerName As String, fullTypeName As String) As Object

Parameters

containerName
String

The name of the entity set to which the resource belongs.

fullTypeName
String

The full namespace-qualified type name of the resource.

Returns

The object representing a resource of specified type and belonging to the specified container.

Remarks

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.

Applies to