当前位置: 首页>>代码示例>>C#>>正文


C# IAsset.Delete方法代码示例

本文整理汇总了C#中IAsset.Delete方法的典型用法代码示例。如果您正苦于以下问题:C# IAsset.Delete方法的具体用法?C# IAsset.Delete怎么用?C# IAsset.Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IAsset的用法示例。


在下文中一共展示了IAsset.Delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeleteAsset

        public static void DeleteAsset(IAsset asset)
        {
            // delete the asset
            asset.Delete();

            // Verify asset deletion
            if (GetAsset(asset.Id) == null)
                Console.WriteLine("Deleted the Asset");
        }
开发者ID:evsheino,项目名称:azure-codecamp,代码行数:9,代码来源:MediaServices.cs

示例2: DeleteAsset

        //////////////////////////////////////////////////
        // Delete tasks
        //////////////////////////////////////////////////

        public static void DeleteAsset(IAsset asset)
        {
            // Delete Asset's locators before
            // deleting the asset.
            foreach (var l in asset.Locators)
            {
                Console.WriteLine("Deleting the Locator {0}", l.Id);
                l.Delete();
            }

            Console.WriteLine("Deleting the Asset {0}", asset.Id);
            // delete the asset
            asset.Delete();
        }
开发者ID:villalongacu,项目名称:VooPpointMgr,代码行数:18,代码来源:VooAzureStreamFacade.cs

示例3: DeleteAsset

 static void DeleteAsset(IAsset asset)
 {
     // delete the asset
     asset.Delete();
 }
开发者ID:vaibhavkadian,项目名称:Azure-Media-Services-Explorer,代码行数:5,代码来源:Mainform.cs

示例4: CleanupAsset

        private static void CleanupAsset(IAsset asset)
        {
            foreach (IAssetDeliveryPolicy policy in asset.DeliveryPolicies.ToList())
            {
                asset.DeliveryPolicies.Remove(policy);
                policy.Delete();
            }

            asset.Delete();
        }
开发者ID:Ginichen,项目名称:azure-sdk-for-media-services,代码行数:10,代码来源:AssetEncryptionStateTests.cs

示例5: DeleteAsset

        private void DeleteAsset(IAsset asset, CloudMediaContext context = null)
        {
            if (asset == null)
            {
                return;
            }

            if (context == null) {
                context = CloudServiceContext;
            }
            // delete the asset
            asset.Delete();
            // Verify asset deletion
            if (GetAsset(asset.Id, context) == null)
                Debug.WriteLine("asset deleted");
        }
开发者ID:rgardler,项目名称:dpp,代码行数:16,代码来源:MediaServicesService.cs

示例6: DeleteAssest

 private void DeleteAssest(IAsset asset)
 {
     // delete the asset
     asset.Delete();
     // Verify asset deletion
     if (GetAsset(asset.Id) == null)
     {
         Trace.TraceInformation("Deleted the Asset: " + asset.Name);
     }
 }
开发者ID:sabbour,项目名称:WAMSVODButler,代码行数:10,代码来源:ButlerEncoderPublish.cs


注:本文中的IAsset.Delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。