| File: System\ServiceModel\Description\PolicyVersion.cs | Web Access |
| Project: src\src\System.ServiceModel.Primitives\src\System.ServiceModel.Primitives.csproj (System.ServiceModel.Primitives) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.ServiceModel.Description { public sealed class PolicyVersion { private static PolicyVersion s_policyVersion12; static PolicyVersion() { s_policyVersion12 = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri); Policy15 = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri15); } private PolicyVersion(string policyNamespace) { Namespace = policyNamespace; } public static PolicyVersion Policy12 { get { return s_policyVersion12; } } public static PolicyVersion Policy15 { get; private set; } public static PolicyVersion Default { get { return s_policyVersion12; } } public string Namespace { get; } public override string ToString() { return Namespace; } } }