OssClientPutObject Method (String, String, Stream, ObjectMetadata) |
Uploads the content to object under the specified bucket and object key.
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,
Stream content,
ObjectMetadata metadata
)
Public Function PutObject (
bucketName As String,
key As String,
content As Stream,
metadata As ObjectMetadata
) As PutObjectResult
public:
virtual PutObjectResult^ PutObject(
String^ bucketName,
String^ key,
Stream^ content,
ObjectMetadata^ metadata
) sealed
abstract PutObject :
bucketName : string *
key : string *
content : Stream *
metadata : ObjectMetadata -> PutObjectResult
override PutObject :
bucketName : string *
key : string *
content : Stream *
metadata : ObjectMetadata -> PutObjectResult
Parameters
- bucketName
- Type: SystemString
Bucket name - key
- Type: SystemString
Key - content
- Type: System.IOStream
Content - metadata
- Type: Aliyun.OSSObjectMetadata
OssObject metadata
Return Value
Type:
PutObjectResultPutObjectResult instance
Implements
IOssPutObject(String, String, Stream, ObjectMetadata)See Also