Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Validation / ValidationError.cs / 1305376 / ValidationError.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Validation { using System; using System.Globalization; using System.Runtime; [Fx.Tag.XamlVisible(false)] public class ValidationError { public ValidationError(string message) : this(message, false, string.Empty) { } public ValidationError(string message, bool isWarning) : this(message, isWarning, string.Empty) { } public ValidationError(string message, bool isWarning, string propertyName) : this(message, isWarning, propertyName, null) { } internal ValidationError(string message, Activity activity) : this(message, false, string.Empty, activity) { } internal ValidationError(string message, bool isWarning, Activity activity) : this(message, isWarning, string.Empty, activity) { } internal ValidationError(string message, bool isWarning, string propertyName, Activity activity) { this.Message = message; this.IsWarning = isWarning; this.PropertyName = propertyName; if (activity != null) { this.Source = activity; this.Id = activity.Id; } } public string Message { get; internal set; } public bool IsWarning { get; private set; } public string PropertyName { get; private set; } public string Id { get; internal set; } public Activity Source { get; internal set; } public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "ValidationError {{ Message = {0}, Source = {1}, PropertyName = {2}, IsWarning = {3} }}", this.Message, this.Source, this.PropertyName, this.IsWarning); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlPathDataSerializer.cs
- streamingZipPartStream.cs
- DefaultValueTypeConverter.cs
- BamlMapTable.cs
- TextServicesPropertyRanges.cs
- WebPartConnectionsConfigureVerb.cs
- typedescriptorpermissionattribute.cs
- TraceXPathNavigator.cs
- TypographyProperties.cs
- MetafileHeader.cs
- XmlReaderDelegator.cs
- MinMaxParagraphWidth.cs
- ProgressBar.cs
- listitem.cs
- StyleXamlParser.cs
- ContractsBCL.cs
- SafeRegistryHandle.cs
- PackWebResponse.cs
- SimpleColumnProvider.cs
- CmsInterop.cs
- RenderDataDrawingContext.cs
- HwndStylusInputProvider.cs
- CompModSwitches.cs
- TemplateFactory.cs
- RawStylusInput.cs
- MonthChangedEventArgs.cs
- ExtendedProperty.cs
- SeekStoryboard.cs
- FieldAccessException.cs
- ListViewItem.cs
- AssemblyAttributesGoHere.cs
- WindowsListBox.cs
- URI.cs
- HtmlElementErrorEventArgs.cs
- GlobalEventManager.cs
- DSASignatureFormatter.cs
- BinaryObjectWriter.cs
- QueryOpcode.cs
- DataServiceConfiguration.cs
- SchemaTypeEmitter.cs
- InternalSafeNativeMethods.cs
- CheckBox.cs
- ByteArrayHelperWithString.cs
- PeerOutputChannel.cs
- LinkLabelLinkClickedEvent.cs
- WorkItem.cs
- EventProxy.cs
- Lookup.cs
- HtmlContainerControl.cs
- InheritedPropertyChangedEventArgs.cs
- DeflateStream.cs
- HMACMD5.cs
- CalloutQueueItem.cs
- XmlMapping.cs
- SqlNotificationEventArgs.cs
- PrintPreviewDialog.cs
- AudioSignalProblemOccurredEventArgs.cs
- ResXBuildProvider.cs
- OperationContextScope.cs
- WebPartCancelEventArgs.cs
- XmlNamespaceMappingCollection.cs
- ControlValuePropertyAttribute.cs
- UnSafeCharBuffer.cs
- WebDescriptionAttribute.cs
- InvokeHandlers.cs
- XmlSerializerSection.cs
- DummyDataSource.cs
- DBCommandBuilder.cs
- TextMetrics.cs
- BufferModesCollection.cs
- SinglePageViewer.cs
- JpegBitmapDecoder.cs
- DataRecordInternal.cs
- ReadOnlyTernaryTree.cs
- PaintValueEventArgs.cs
- ErrorHandler.cs
- TaskResultSetter.cs
- SystemColors.cs
- BaseDataListDesigner.cs
- WebRequestModulesSection.cs
- DataGridViewRowPrePaintEventArgs.cs
- DbTransaction.cs
- NotSupportedException.cs
- Util.cs
- UnsafeNativeMethodsCLR.cs
- AssemblyBuilder.cs
- SyndicationContent.cs
- RSAPKCS1SignatureDeformatter.cs
- DictionaryContent.cs
- ControlCachePolicy.cs
- XmlSchemaSequence.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TransformerTypeCollection.cs
- Color.cs
- ActivityScheduledQuery.cs
- ProgressBarAutomationPeer.cs
- DataGridItemCollection.cs
- BevelBitmapEffect.cs
- handlecollector.cs
- RowParagraph.cs