IUpdatable.CreateResource 方法
建立指定之型別並屬於指定之容器的資源。
命名空間: System.Data.Services
組件: Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)
語法
'宣告
Function CreateResource ( _
containerName As String, _
fullTypeName As String _
) As Object
'用途
Dim instance As IUpdatable
Dim containerName As String
Dim fullTypeName As String
Dim returnValue As Object
returnValue = instance.CreateResource(containerName, _
fullTypeName)
Object CreateResource(
string containerName,
string fullTypeName
)
Object^ CreateResource(
String^ containerName,
String^ fullTypeName
)
abstract CreateResource :
containerName:string *
fullTypeName:string -> Object
function CreateResource(
containerName : String,
fullTypeName : String
) : Object
參數
- containerName
型別:System.String
資源所屬的實體集名稱。
- fullTypeName
型別:System.String
資源的完整命名空間限定的型別名稱。
傳回值
型別:System.Object
物件,表示指定之型別並屬於指定之容器的資源。
備註
呼叫 CreateResource 插入 HTTP POST 方法的新資源。 第一個參數指向資源所屬的容器,第二個參數則是需要建立之資源類型的命名空間限定名稱。
使用繼承時,第二個參數最有用。 傳回型別不必做為資源的實際 CLR 執行個體。 它可以是實作需要的任何內容,例如 Cookie。