OssClientPutObject 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 public PutObjectResult PutObject(
string bucketName,
string key,
string fileToUpload,
ObjectMetadata metadata
)
Public Function PutObject (
bucketName As String,
key As String,
fileToUpload As String,
metadata As ObjectMetadata
) As PutObjectResult
public:
virtual PutObjectResult^ PutObject(
String^ bucketName,
String^ key,
String^ fileToUpload,
ObjectMetadata^ metadata
) sealed
abstract PutObject :
bucketName : string *
key : string *
fileToUpload : string *
metadata : ObjectMetadata -> PutObjectResult
override 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
Implements
IOssPutObject(String, String, String, ObjectMetadata)See Also