e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
75 lines
1.7 KiB
C#
75 lines
1.7 KiB
C#
//-----------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace System.Activities.Hosting
|
|
{
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
using System.Runtime;
|
|
|
|
[DataContract]
|
|
[Fx.Tag.XamlVisible(false)]
|
|
public sealed class BookmarkScopeInfo
|
|
{
|
|
Guid id;
|
|
string temporaryId;
|
|
|
|
internal BookmarkScopeInfo(Guid id)
|
|
{
|
|
this.Id = id;
|
|
}
|
|
|
|
internal BookmarkScopeInfo(string temporaryId)
|
|
{
|
|
this.TemporaryId = temporaryId;
|
|
}
|
|
|
|
public bool IsInitialized
|
|
{
|
|
get
|
|
{
|
|
return this.TemporaryId == null;
|
|
}
|
|
}
|
|
|
|
public Guid Id
|
|
{
|
|
get
|
|
{
|
|
return this.id;
|
|
}
|
|
private set
|
|
{
|
|
this.id = value;
|
|
}
|
|
}
|
|
|
|
public string TemporaryId
|
|
{
|
|
get
|
|
{
|
|
return this.temporaryId;
|
|
}
|
|
private set
|
|
{
|
|
this.temporaryId = value;
|
|
}
|
|
}
|
|
|
|
[DataMember(EmitDefaultValue = false, Name = "Id")]
|
|
internal Guid SerializedId
|
|
{
|
|
get { return this.Id; }
|
|
set { this.Id = value; }
|
|
}
|
|
|
|
[DataMember(EmitDefaultValue = false, Name = "TemporaryId")]
|
|
internal string SerializedTemporaryId
|
|
{
|
|
get { return this.TemporaryId; }
|
|
set { this.TemporaryId = value; }
|
|
}
|
|
}
|
|
}
|