OssClientGeneratePresignedUri Method (String, String, DateTime, SignHttpMethod) |
Generates the presigned url with specified method and specified expiration time.
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax public Uri GeneratePresignedUri(
string bucketName,
string key,
DateTime expiration,
SignHttpMethod method
)
Public Function GeneratePresignedUri (
bucketName As String,
key As String,
expiration As DateTime,
method As SignHttpMethod
) As Uri
public:
virtual Uri^ GeneratePresignedUri(
String^ bucketName,
String^ key,
DateTime expiration,
SignHttpMethod method
) sealed
abstract GeneratePresignedUri :
bucketName : string *
key : string *
expiration : DateTime *
method : SignHttpMethod -> Uri
override GeneratePresignedUri :
bucketName : string *
key : string *
expiration : DateTime *
method : SignHttpMethod -> Uri
Parameters
- bucketName
- Type: SystemString
Bucket name - key
- Type: SystemString
Object key - expiration
- Type: SystemDateTime
Uri expiration time - method
- Type: Aliyun.OSSSignHttpMethod
HTTP method
Return Value
Type:
Urisigned url
Implements
IOssGeneratePresignedUri(String, String, DateTime, SignHttpMethod)See Also