WebSiteOperationsExtensions.CreateRepository 方法 (IWebSiteOperations, String, String)
网站存储库是实质上是一个可用于管理您的网站内容的 Git 存储库才能。 通过使用 Git 源代码管理工具,可以将推送或提取到您的站点的受版本控制的变化。 此 API 执行一个存储库中创建的操作。 (请参阅 https://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx 有关详细信息)
命名空间: Microsoft.WindowsAzure
程序集: Microsoft.WindowsAzure.Management.WebSites(Microsoft.WindowsAzure.Management.WebSites.dll 中)
语法
public static OperationResponse CreateRepository(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName
)
public:
[ExtensionAttribute]
static OperationResponse^ CreateRepository(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName
)
static member CreateRepository :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string -> OperationResponse
<ExtensionAttribute>
Public Shared Function CreateRepository (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String
) As OperationResponse
参数
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations对 Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations 引用。
webSpaceName
Type: System.String必需。 Web 空间的名称。
webSiteName
Type: System.String必需。 网站的名称。
返回值
Type: Microsoft.WindowsAzure.OperationResponse
标准服务响应,包括 HTTP 状态代码和请求 ID。
请参阅
WebSiteOperationsExtensions 类
Microsoft.WindowsAzure 命名空间
返回页首