Aliyun.OSS.阿里云OSS对象存储接口测试 C#.Winform (原)
Aliyun.OSS.阿里云OSS对象存储接口测试 C#.Winform (原)
1. 首先在阿里云开通OSS服务,新建Bucket及AccessKey,得到accessKeyId及accessKeySecret。
2. 解决方案要加载NuGet程序包,搜索Aliyun.OSS.SDK及安装。
1. 首先在阿里云开通OSS服务,新建Bucket及AccessKey,得到accessKeyId及accessKeySecret。
2. 解决方案要加载NuGet程序包,搜索Aliyun.OSS.SDK及安装。
C# Code:
private void Form1_Load(object sender, EventArgs e)
{
string accessKeyId = "zLTAI6dmbcawzYpd=";
string accessKeySecret = "3qeQ7TqMEHIr9k1Apu76ljlLezxzB3 ";
string endpoint = "oss-cn-shenzhen.aliyuncs.com";
client = new OssClient(endpoint, accessKeyId, accessKeySecret);
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
private void Form1_Load(object sender, EventArgs e)
{
string accessKeyId = "zLTAI6dmbcawzYpd=";
string accessKeySecret = "3qeQ7TqMEHIr9k1Apu76ljlLezxzB3 ";
string endpoint = "oss-cn-shenzhen.aliyuncs.com";
client = new OssClient(endpoint, accessKeyId, accessKeySecret);
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网