Skip to content

Context getting Deleted Site #659

Answered by jansenbe
anthonywhite asked this question in Q&A
Discussion options

You must be logged in to vote

@anthonywhite : when we create a context using one of the CreateAsync method there are always two REST calls made to the site collection in question...so if you were able to create the PnPContext for a site collection that means the site collection was not deleted. If the site collection would have been delete or resided in the site collection recycle bin this operation would have failed.

If you created a context before the site collection was deleted then the context use that triggers a call to SharePoint Online would have resulted in an exception thrown.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonywhite
Comment options

You must be logged in to vote
4 replies
@jansenbe
Comment options

@jansenbe
Comment options

@jansenbe
Comment options

@anthonywhite
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants