IUpdatable.CreateResource(String, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- containerName
- String
The name of the entity set to which the resource belongs.
- fullTypeName
- String
The full namespace-qualified type name of the resource.
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.
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: