API support

CSOM SSOM

Can be deployed under

WebApplication

Notes

Prefix provision is enabled via PrefixDefinition object.

Provision checks if prefix exists, deploying a new one using Path as a key.

Examples

Add prefix

var prefixDef = new PrefixDefinition
{
    Path = "projects",
    PrefixType = BuiltInPrefixTypes.WildcardInclusion
};

var model = SPMeta2Model.NewWebApplicationModel(webApp =>
{
    webApp.AddPrefix(prefixDef);
});

DeployModel(model);