Click or drag to resize
IOssGeneratePresignedUri Method (String, String, DateTime, SignHttpMethod)
使用指定过期时间生成一个用指定方法访问OssObject的Uri。

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntax
Uri GeneratePresignedUri(
	string bucketName,
	string key,
	DateTime expiration,
	SignHttpMethod method
)

Parameters

bucketName
Type: SystemString
Bucket名称。
key
Type: SystemString
Object的Key
expiration
Type: SystemDateTime
Uri的超时时间。
method
Type: Aliyun.OSSSignHttpMethod
访问Uri的方法

Return Value

Type: Uri
访问OssObject的Uri。
See Also