IOssPutObject Method (String, String, String, ObjectMetadata) |
Uploads a local file with specified metadata to OSS.
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax PutObjectResult PutObject(
string bucketName,
string key,
string fileToUpload,
ObjectMetadata metadata
)
Function PutObject (
bucketName As String,
key As String,
fileToUpload As String,
metadata As ObjectMetadata
) As PutObjectResult
PutObjectResult^ PutObject(
String^ bucketName,
String^ key,
String^ fileToUpload,
ObjectMetadata^ metadata
)
abstract PutObject :
bucketName : string *
key : string *
fileToUpload : string *
metadata : ObjectMetadata -> PutObjectResult
Parameters
- bucketName
- Type: SystemString
Bucket name - key
- Type: SystemString
Key - fileToUpload
- Type: SystemString
local file path - metadata
- Type: Aliyun.OSSObjectMetadata
OssObjectmetadata
Return Value
Type:
PutObjectResultPutObjectResult instance
See Also