本文整理汇总了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");
}
示例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();
}
示例3: DeleteAsset
static void DeleteAsset(IAsset asset)
{
// delete the asset
asset.Delete();
}
示例4: CleanupAsset
private static void CleanupAsset(IAsset asset)
{
foreach (IAssetDeliveryPolicy policy in asset.DeliveryPolicies.ToList())
{
asset.DeliveryPolicies.Remove(policy);
policy.Delete();
}
asset.Delete();
}
示例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");
}
示例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);
}
}