OssClient Constructor (Uri, String, String, String) |
由用户指定的OSS访问地址、STS提供的临时Token信息(Access Key Id/Access Key Secret/Security Token)
构造一个新的
OssClient实例。
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.2.0.0 (2.2.0)
Syntaxpublic OssClient(
Uri endpoint,
string accessKeyId,
string accessKeySecret,
string securityToken
)
Parameters
- endpoint
- Type: SystemUri
OSS的访问地址。 - accessKeyId
- Type: SystemString
STS提供的临时访问ID。 - accessKeySecret
- Type: SystemString
STS提供的临时访问密钥。 - securityToken
- Type: SystemString
STS提供的安全令牌。
See Also