System.Data.OleDb.OleDbPermission.ToXml C# (CSharp) Method

ToXml() private method

private ToXml ( ) : SecurityElement
return System.Security.SecurityElement
		public override SecurityElement ToXml ()
		{
			throw new NotImplementedException ();
		}

Usage Example

		private void Check (string msg, OleDbPermission perm, bool blank, bool unrestricted, int count)
		{
			Assert.AreEqual (blank, perm.AllowBlankPassword, msg + ".AllowBlankPassword");
			Assert.AreEqual (unrestricted, perm.IsUnrestricted (), msg + ".IsUnrestricted");
			if (count == 0)
				Assert.IsNull (perm.ToXml ().Children, msg + ".Count != 0");
			else
				Assert.AreEqual (count, perm.ToXml ().Children.Count, msg + ".Count");
			Assert.AreEqual (String.Empty, perm.Provider, "Provider");
		}