Skip to content

Instantly share code, notes, and snippets.

@mattbrailsford
Created March 16, 2011 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbrailsford/872753 to your computer and use it in GitHub Desktop.
Save mattbrailsford/872753 to your computer and use it in GitHub Desktop.
Possible uSiteBuilder syntax for property update or deletion
using System;
using System.Collections.Generic;
using System.Web;
using Vega.USiteBuilder;
namespace Umb.DocTypes
{
[DocumentType]
public class TestPage : Vega.USiteBuilder.DocumentTypeBase
{
[Obsolete] // Delete
[DocumentTypeProperty(UmbracoPropertyType.Textstring)]
public string DeleteTestString { get; set; }
[Obsolete(UseInstead = "UpdateTestString2")] // Update
[DocumentTypeProperty(UmbracoPropertyType.Textstring)]
public string UpdateTestString { get; set; }
[DocumentTypeProperty(UmbracoPropertyType.Textstring)]
public string UpdateTestString2 { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment